:root {
    --gold: #b8862b;
    --gold-dark: #8f641d;
    --black: #111;
    --white: #fff;
    --bg: #faf9f6;
    --muted: #777;
    --border: rgba(184, 134, 43, .18);
    --shadow: 0 18px 50px rgba(0, 0, 0, .05);
    --whatsapp: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    color: var(--black);
    background:
        radial-gradient(circle at top, rgba(184,134,43,.10), transparent 35%),
        var(--bg);
}

a {
    text-decoration: none;
}

a,
button,
input {
    outline: none !important;
    box-shadow: none !important;
}

/* Header */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 86px;
    padding: 12px 42px;
    background: rgba(255,255,255,.95);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    backdrop-filter: blur(12px);
}

.brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.search {
    flex: 1;
    max-width: 560px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px;
    display: flex;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

.search input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 12px 18px;
    font-weight: 700;
}

.search button {
    border: 0;
    cursor: pointer;
    padding: 0 28px;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

/* Layout */
.content {
    min-height: calc(100vh - 180px);
}

.section {
    max-width: 1180px;
    margin: auto;
    padding: 45px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 35px;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 900;
}

.section-title p,
.section-subtitle {
    color: var(--muted);
    margin-top: 8px;
}

/* Home Slider */
.home-slider {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.home-slider .carousel-item img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

/* Company Shelf */
.shelf {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}

.shelf-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    margin-bottom: 24px;
    border-bottom: 2px solid rgba(184,134,43,.12);
}

.company-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.company-logo {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 6px;
}

.shelf-head h3 {
    font-size: 28px;
    font-weight: 900;
}

.company-count {
    color: #888;
    font-size: 14px;
}

.view-btn,
.back-btn,
.details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(184,134,43,.12);
    color: var(--gold-dark);
    font-weight: 900;
}

/* Product Cards */
.products-row,
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 16px;
    text-align: center;
    color: var(--black);
    box-shadow: 0 10px 28px rgba(0,0,0,.04);
    transition: .25s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(184,134,43,.15);
}

.product-card-link {
    color: inherit;
}

.product-img,
.product-image {
    height: 220px;
    border-radius: 18px;
    overflow: hidden;
    background: #faf9f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.product-img img,
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3,
.product-card h4 {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 8px;
}

.barcode,
.details {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--gold-dark);
    font-size: 22px;
    font-weight: 900;
    margin-top: 10px;
}

.price img,
.currency-icon,
.omr-icon {
    width: 16px !important;
    height: 16px !important;
    object-fit: contain !important;
}

.product-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--whatsapp);
    color: #fff;
    padding: 13px 14px;
    border-radius: 14px;
    font-weight: 900;
    margin-top: 14px;
}

/* Company Page */
.company-hero {
    max-width: 1180px;
    margin: auto;
    padding: 55px 20px 20px;
}

.company-hero-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 22px;
    box-shadow: var(--shadow);
}

.company-hero-logo {
    width: 105px;
    height: 105px;
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-hero h1 {
    font-size: 38px;
    font-weight: 900;
}

/* Product Show */
.product-show-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 35px;
    align-items: center;
    box-shadow: var(--shadow);
}

.product-show-gallery {
    border-radius: 24px;
    overflow: hidden;
}

#productCarousel .carousel-item img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 24px;
}

.product-show-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-show-info h1 {
    font-size: 44px;
    font-weight: 900;
}

.product-show-info .details {
    max-height: 160px;
    overflow: auto;
}

.product-show-price {
    justify-content: flex-start;
    font-size: 32px;
}

/* Footer */
.bottombar {
    background: #111;
    color: #fff;
    border-top: 4px solid var(--gold);
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #fff;
    padding: 8px;
    border-radius: 16px;
}

.footer-brand strong {
    display: block;
    font-size: 18px;
}

.footer-brand small,
.footer-copy {
    color: #bbb;
}

.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 800;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
}

.footer-links a:hover {
    background: var(--gold);
}

.footer-links i {
    color: var(--gold);
}

/* Empty */
.empty {
    padding: 35px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    text-align: center;
    color: #777;
    font-weight: 900;
}

/* Responsive */
@media (max-width: 950px) {
    .products-row,
    .products-grid,
    .product-show-card {
        grid-template-columns: 1fr;
    }

    #productCarousel .carousel-item img {
        height: 330px;
    }

    .product-show-info h1 {
        font-size: 34px;
    }
}

@media (max-width: 700px) {
    .topbar {
        padding: 14px 18px;
        flex-direction: column;
        align-items: stretch;
    }

    .brand {
        display: flex;
        justify-content: center;
    }

    .brand img {
        width: 64px;
        height: 64px;
    }

    .search {
        max-width: 100%;
    }

    .shelf-head,
    .company-hero-card {
        flex-direction: column;
        text-align: center;
    }

    .company-info {
        flex-direction: column;
        text-align: center;
    }

    .home-slider .carousel-item img {
        height: 230px;
    }

    .bottombar {
        text-align: center;
        flex-direction: column;
    }

    .footer-brand {
        flex-direction: column;
    }

    .footer-links {
        justify-content: center;
    }
}