/* ═══════════════════════════════════════
   Shisha Maison — Shop & Product Styles
   ═══════════════════════════════════════ */

/* ── Mega Menu ── */
.has-mega { position: relative; }
.has-mega > a { position: relative; }

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.08);
    padding: 1.75rem 2rem;
    min-width: 500px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 100;
}

.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
    display: flex;
    gap: 2rem;
}

.mega-col {
    min-width: 140px;
}

.mega-col-title {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #2D5F50;
    margin-bottom: .65rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid #eee;
}

.mega-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-col li a {
    display: block;
    padding: .3rem 0;
    color: #444;
    text-decoration: none;
    font-size: .88rem;
    transition: color .15s;
}

.mega-col li a:hover { color: #2D5F50; }

/* Mobile nav sections */
.mobile-nav-section { margin-bottom: .5rem; }
.mobile-nav-heading {
    font-weight: 600 !important;
    color: #fff !important;
}
.mobile-nav-sub {
    padding-left: 1rem;
    margin-top: .25rem;
}
.mobile-nav-sublink {
    display: block;
    padding: .35rem 0;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: .88rem;
    transition: color .15s;
}
.mobile-nav-sublink:hover { color: #fff; }

/* ── Shop Hero ── */
.shop-hero {
    padding: 3rem 0 3rem;
    background: var(--bg-warm, #F6F3F0);
    text-align: center;
}

.shop-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--accent, #2D5F50);
    margin-bottom: .5rem;
}

.shop-hero-sub {
    color: #666;
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.shop-hero-count {
    font-size: .85rem;
    color: #999;
    margin-top: .5rem;
}

.shop-hero-sm { padding: 5rem 0 2rem; }

.shop-hero-img {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 8rem 0 4rem;
}

.shop-hero-img .shop-breadcrumb a { color: rgba(255,255,255,.7); }
.shop-hero-img .shop-breadcrumb { color: rgba(255,255,255,.5); }
.shop-hero-img h1 { color: #fff; }
.shop-hero-img .shop-hero-sub { color: rgba(255,255,255,.8); }

.shop-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.3), rgba(0,0,0,.6));
    z-index: 1;
}

/* ── Breadcrumb ── */
.shop-breadcrumb {
    font-size: .82rem;
    color: #999;
    margin-bottom: 1rem;
}
.shop-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color .15s;
}
.shop-breadcrumb a:hover { color: #2D5F50; }

/* ── Category Grid (shop all) ── */
.shop-categories { padding: 3rem 0 4rem; }

.shop-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
}

.shop-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all .25s ease;
}
.shop-cat-card:hover {
    border-color: #2D5F50;
    box-shadow: 0 8px 30px rgba(45,95,80,.1);
    transform: translateY(-3px);
}
.shop-cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(45,95,80,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #2D5F50;
}
.shop-cat-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: .4rem;
}
.shop-cat-card p {
    font-size: .85rem;
    color: #888;
    line-height: 1.5;
}

/* ── Pages within Category ── */
.shop-pages-section { padding: 2rem 0 4rem; }

.shop-group { margin-bottom: 2.5rem; }
.shop-group-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2D5F50;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #eee;
}

.shop-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.shop-page-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: all .25s ease;
}
.shop-page-card:hover {
    border-color: #2D5F50;
    box-shadow: 0 6px 24px rgba(45,95,80,.08);
    transform: translateY(-2px);
}

.shop-page-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f5f5;
}
.shop-page-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.shop-page-card:hover .shop-page-img img { transform: scale(1.05); }

.shop-page-info { padding: 1rem; }
.shop-page-info h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: .25rem;
}
.shop-page-count {
    font-size: .78rem;
    color: #999;
}

/* ── Product Grid ── */
.shop-products { padding: 2rem 0 4rem; }

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.shop-search-form {
    display: flex;
    max-width: 350px;
    flex: 1;
}
.shop-search-input {
    flex: 1;
    padding: .6rem 1rem;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: .9rem;
    font-family: inherit;
    background: #fff;
    outline: none;
    transition: border-color .2s;
}
.shop-search-input:focus { border-color: #2D5F50; }
.shop-search-btn {
    padding: .6rem .85rem;
    background: #2D5F50;
    border: 1px solid #2D5F50;
    border-radius: 0 8px 8px 0;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.shop-search-btn:hover { background: #3a7d6a; }

.shop-result-count { font-size: .85rem; color: #999; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.25rem;
}

.products-grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: all .25s ease;
    position: relative;
}
.product-card:hover {
    border-color: #2D5F50;
    box-shadow: 0 8px 30px rgba(45,95,80,.08);
    transform: translateY(-3px);
}

.product-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    background: #C4735B;
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    padding: .2rem .6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .05em;
    z-index: 2;
}

.product-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f9f9f9;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform .3s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }

.product-card-info { padding: 1rem; }
.product-card-brand {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #C4735B;
}
.product-card-name {
    font-size: .95rem;
    font-weight: 500;
    margin: .25rem 0 .4rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2D5F50;
}
.product-card-was {
    text-decoration: line-through;
    color: #bbb;
    font-size: .85rem;
    margin-left: .35rem;
}
.product-card-oos {
    font-size: .75rem;
    color: #c44b4b;
    margin-top: .25rem;
}

/* ── Pagination ── */
.shop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}
.shop-page-btn {
    padding: .55rem 1.25rem;
    background: #2D5F50;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: .88rem;
    transition: background .15s;
}
.shop-page-btn:hover { background: #3a7d6a; }
.shop-page-info { color: #999; font-size: .85rem; }

.shop-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #999;
}
.shop-empty h3 { color: #555; margin: .75rem 0 .5rem; font-size: 1.1rem; }

/* ── Product Detail ── */
.product-detail { padding: 3rem 0 4rem; }

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 1.5rem;
}

/* Gallery */
.product-gallery { position: sticky; top: 6rem; align-self: start; }

.product-main-image {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f9f9f9;
    border: 1px solid #eee;
}
.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
}

.product-badge-lg {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #C4735B;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    padding: .35rem .85rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: .05em;
    z-index: 2;
}

.product-thumbs {
    display: flex;
    gap: .5rem;
    margin-top: .75rem;
    overflow-x: auto;
}
.product-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #f9f9f9;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .15s;
    padding: 0;
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.product-thumb.active,
.product-thumb:hover { border-color: #2D5F50; }

/* Product Info */
.product-brand {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #C4735B;
}

.product-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
    color: #1A1D1C;
    margin: .4rem 0 1rem;
    line-height: 1.2;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: .65rem;
    margin-bottom: .75rem;
}
.product-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2D5F50;
}
.product-was {
    font-size: 1.1rem;
    text-decoration: line-through;
    color: #bbb;
}
.product-save {
    font-size: .8rem;
    font-weight: 600;
    color: #C4735B;
    background: rgba(196,115,91,.1);
    padding: .2rem .5rem;
    border-radius: 4px;
}

.product-stock-in {
    display: inline-block;
    font-size: .82rem;
    font-weight: 500;
    color: #2D5F50;
    background: rgba(45,95,80,.08);
    padding: .3rem .7rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}
.product-stock-oos {
    display: inline-block;
    font-size: .82rem;
    font-weight: 500;
    color: #c44b4b;
    background: rgba(196,75,75,.08);
    padding: .3rem .7rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.product-short-desc {
    font-size: .95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

.product-sku {
    font-size: .8rem;
    color: #999;
    margin-bottom: 1.5rem;
}

/* Specs */
.product-specs {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}
.product-specs h3 {
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #2D5F50;
    margin-bottom: .75rem;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
}
.specs-table tr:not(:last-child) td { border-bottom: 1px solid #f0f0f0; }
.specs-table td { padding: .55rem 0; font-size: .9rem; }
.spec-label { color: #888; width: 40%; }
.spec-value { color: #333; font-weight: 500; }

/* Description */
.product-description {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}
.product-description h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2D5F50;
    margin-bottom: 1rem;
}
.product-desc-content {
    font-size: .95rem;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
}

/* Related */
.product-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}
.product-related h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2D5F50;
    margin-bottom: 1.5rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .mega-menu { min-width: 400px; }
    .product-layout { gap: 2rem; }
}

@media (max-width: 768px) {
    .mega-menu { display: none; }
    .product-layout { grid-template-columns: 1fr; }
    .product-gallery { position: static; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .shop-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-page-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-hero { padding: 3rem 0 2rem; }
    .product-detail { padding: 3rem 0 3rem; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
    .product-card-info { padding: .75rem; }
    .product-card-name { font-size: .85rem; }
    .shop-cat-grid { grid-template-columns: 1fr; }
    .shop-toolbar { flex-direction: column; align-items: stretch; }
    .shop-search-form { max-width: none; }
}