/* SHOP & CATEGORY */
#divi-custom-shop {
    display: flex;
    background: var(--white-color);
    min-height: 100vh;
}

.shop-sidebar {
    width: 260px;
    height: 100vh;
    background: var(--black-color);
    color: white;
    position: fixed;
    left: 0; top: 0;
    z-index: 5;
    padding: 40px;
    padding-top: 150px;
}

footer {
	position: relative;
	z-index: 10;
}

.filter-label {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white-color);
    margin-bottom: 5px;
    margin-top: 10px;
}

.shop-nav ul { list-style: none!important; padding: 0!important; margin: 0!important; }
.shop-nav li { margin-bottom: 15px!important; }
.shop-nav a {
    color: white!important;
    text-decoration: none!important;
    font-size: 14px;
    opacity: 0.8;
    transition: 0.3s ease;
    display: inline-block;
    position: relative;
}
.shop-nav a.active { 
    opacity: 1; 
    color: var(--gold-color)!important; 
    font-weight: 600; 
    transform: translateX(5px);
    padding-left: 15px;
}

.shop-nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 2px;
    background-color: var(--gold-color);
}

.shop-main { margin-left: 260px; width: 100%; padding: 80px 5%; }

.page-intro .product-title-eyebrow { color: var(--black-color)!important; text-transform: uppercase; font-size: 18px !important; letter-spacing: 2px; font-weight: 700;}
.page-intro .product-title-main {
    font-size: clamp(2rem, 5vw, 3rem)!important;
    line-height: 1.1!important;
    color: var(--black-color)!important;
    margin: 0!important;
    font-family: var(--serif);
    font-weight: 700!important;
    padding-bottom: 0!important;
}
.page-intro .product-title-subtitle { color: var(--black-color); max-width: 1024px; font-style: italic; font-family: var(--sans) !important;}
.page-intro .product-title-accordion { font-size: 18px !important; margin-top: 20px; font-weight: 600; font-family: var(--sans) !important;}

.seo-accordion-container {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 40px;
    border-top: 1px solid var(--black-color);
    border-bottom: 1px solid var(--black-color);
}
.seo-acc-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s;
}
.seo-acc-title {
	max-width: 900px;
    font-size: 1.8rem !important;
    font-weight: 400 !important;
    margin: 0 !important;
    transition: color 0.3s;
}
.seo-acc-icon {
    position: relative;
    display: block;
	transition: opacity 0.2s ease;
}
.seo-acc-header[aria-expanded="false"] .seo-acc-icon::after {
  content: "OPEN";
}

.seo-acc-header[aria-expanded="true"] .seo-acc-icon::after {
  content: "CLOSE";
}

.seo-acc-body {
	max-width: 900px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.seo-acc-inner-text {
    padding-bottom: 40px;
    font-family: var(--sans);
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
}

.seo-acc-inner-text strong {color: var(--black-color);}
.seo-acc-inner-text h3 {font-size: 1.3rem !important; margin-top: 20px !important; margin-bottom: 10px !important;}

.wine-category-block { padding-top: 60px; margin-bottom: 40px; }
.cat-title {
    font-size: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 40px;
}

.wine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.wine-card {
    background: white;
    border: 1px solid #f0f0f0;
    padding: 25px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.wine-img-box { height: 300px; background: #fbfbfb; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; overflow: hidden;}
.wine-img-box a.wine-link {height: 100%;}
.wine-img-box a img { height: 85%; object-fit: contain; transition: transform 0.3s ease;}
.wine-img-box a:hover img { transform: scale(1.1); }

.wine-tag { font-size: 12px; text-transform: uppercase; color: var(--red-color); letter-spacing: 1px; margin-bottom: 10px; }
.wine-title { font-size: 1.2rem; line-height: 1.2; color: var(--black-color); min-height: 80px}
.wine-type { display: block; font-size: 1.2rem; color: var(--black-color); margin-top: -10px; font-weight: 700; margin-bottom: 15px; }
.wine-price { font-weight: 700; font-size: 1.5rem; margin-bottom: 25px; color: var(--red-color);}

.wine-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.w-btn {
    border: 1px solid var(--black-color);
    padding: 12px 5px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: 0.3s;
}
.w-btn-details { background: transparent; color: var(--black-color); }
.w-btn-add { background: var(--black-color); color: white; }
.w-btn-add:hover { background: var(--gold-color); border-color: var(--gold-color); color: var(--black-color); }

/* ========================= */
/* MOBILE & TABLET OVERRIDES */
/* ========================= */

.mobile-shop-toggle {
    display: none;
}

/* TABLET & MOBILE */
@media (min-width: 1025px) and (max-width: 1280px) {
	.wine-grid {grid-template-columns: repeat(2, 1fr);}
}
@media (max-width: 1024px) {

    /* TOGGLE BUTTON */
    .mobile-shop-toggle {
        display: flex;
        position: fixed;
        bottom: 25px;
        left: 10px;
        z-index: 1001;
        background: var(--gold-color);
        color: black;
        border: none;
        padding: 14px 18px;
        font-size: 11px;
        letter-spacing: 2px;
        text-transform: uppercase;
        cursor: pointer;
    }
    .seo-acc-title { font-size: 1.4rem;}
    .seo-acc-icon {display: none;}

    /* SIDEBAR → DRAWER */
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        padding: 30px;
        padding-top: 120px;
        transition: left 0.4s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .shop-sidebar.open {
        left: 0;
    }

    /* MAIN RESET */
    .shop-main {
        margin-left: 0;
        padding-top: 60px;
    }

    /* GRID */
    .wine-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE SMALL */
@media (max-width: 600px) {

    .wine-grid {
        grid-template-columns: 1fr;
    }

    .wine-img-box {
        height: 220px;
    }

    .wine-price {
        font-size: 1.3rem;
    }

    .w-btn {
        padding: 14px;
        font-size: 11px;
    }
}