/* ==========================================
   TRIVANA RESPONSIVE
========================================== */

/* ===============================
1400px
================================ */

@media(max-width:1400px){

.container{

width:94%;

}

.hero h1{

font-size:62px;

}

}

/* ===============================
1200px
================================ */

@media(max-width:1200px){

.hero-grid{

grid-template-columns:1fr 1fr;

gap:50px;

}

.hero-circle{

width:430px;

height:430px;

}

.hero-product{

width:360px;

}

.featured-grid{

grid-template-columns:repeat(2,1fr);

}

.why-grid{

grid-template-columns:repeat(2,1fr);

}

.testimonial-grid{

grid-template-columns:repeat(2,1fr);

}

.about-features{

grid-template-columns:repeat(2,1fr);

}

}

/* ===============================
992px
================================ */

@media(max-width:992px){

.header{

height:80px;

}

.navbar{

padding:0 25px;

}

.nav-menu{

display:none;

}

.hero{

padding-top:110px;

}

.hero-grid{

grid-template-columns:1fr;

text-align:center;

}

.hero p{

margin:auto auto 35px;

}

.hero-buttons{

justify-content:center;

}

.hero-image{

margin-top:60px;

}

.about-grid{

grid-template-columns:1fr;

}

.about-content{

text-align:center;

}

.featured-grid{

grid-template-columns:1fr 1fr;

}

.gallery-grid{

grid-template-columns:repeat(2,1fr);

}

.newsletter-form{

flex-direction:column;

align-items:center;

}

.newsletter-form input{

width:100%;

max-width:100%;

}

}

/* ===============================
768px
================================ */

@media(max-width:768px){

section{

padding:80px 0;

}

.hero h1{

font-size:48px;

}

.hero-circle{

width:340px;

height:340px;

}

.hero-product{

width:280px;

}

.featured-grid{

grid-template-columns:1fr;

}

.why-grid{

grid-template-columns:1fr;

}

.testimonial-grid{

grid-template-columns:1fr;

}

.gallery-grid{

grid-template-columns:1fr 1fr;

}

.about-features{

grid-template-columns:1fr;

}

.footer-grid{

grid-template-columns:1fr;

gap:40px;

text-align:center;

}

.newsletter-card{

padding:45px 30px;

}

.newsletter-card h2{

font-size:38px;

}

}

/* ===============================
576px
================================ */

@media(max-width:576px){

.header{

top:0;

border-radius:0;

height:72px;

}

.logo img{

height:42px;

}

.hero{

padding-top:90px;

}

.hero h1{

font-size:38px;

}

.hero p{

font-size:16px;

}

.hero-buttons{

flex-direction:column;

}

.btn-primary,

.btn-outline{

width:100%;

}

.hero-circle{

width:260px;

height:260px;

}

.hero-product{

width:220px;

}

.section-header h2{

font-size:38px;

}

.gallery-grid{

grid-template-columns:1fr;

}

.newsletter-card{

padding:35px 20px;

}

.newsletter-card h2{

font-size:30px;

}

.footer{

padding:60px 0 25px;

}

}

@media(max-width:992px){

.about-grid,
.hero-grid{

grid-template-columns:1fr;

}

.ingredient-grid,
.numbers-grid,
.why-grid,
.featured-grid,
.testimonial-grid{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:768px){

.ingredient-grid,
.numbers-grid,
.why-grid,
.featured-grid,
.testimonial-grid{

grid-template-columns:1fr;

}

}

/* INGREDIENT SECTION */

@media(max-width:1200px){

.ingredient-grid{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:768px){

.ingredient-grid{

grid-template-columns:1fr;

}

.ingredient-card{

padding:35px 25px;

}

.ingredient-card h3{

font-size:28px;

}

.ingredient-card p{

font-size:16px;

}

}

@media(max-width:992px){

.cart-layout{

grid-template-columns:1fr;

}

.cart-summary{

position:static;

margin-top:30px;

}

.cart-card{

flex-direction:column;

text-align:center;

}

.cart-total{

margin-top:20px;

}

}

/*=========================================
PROFILE / ACCOUNT PAGE MOBILE RESPONSIVE FIX
=========================================*/
@media(max-width: 992px) {
    body, html {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    .profile-page {
        padding: 90px 0 60px !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .dashboard-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .dashboard-sidebar, .dashboard-content {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 20px 16px !important;
        border-radius: 18px !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .dashboard-sidebar {
        text-align: center !important;
    }

    .dashboard-menu {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-top: 18px !important;
    }

    .dashboard-menu li {
        margin-bottom: 0 !important;
    }

    .dashboard-menu a {
        padding: 10px 8px !important;
        font-size: 0.8rem !important;
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        border-radius: 10px !important;
        background: #FAF8F5 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        box-sizing: border-box !important;
    }

    .dashboard-menu a.active {
        background: #8B6B4A !important;
        color: #ffffff !important;
    }

    .dashboard-content h1 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }

    .dashboard-content p {
        font-size: 0.88rem !important;
        line-height: 1.4 !important;
        margin-bottom: 15px !important;
    }

    .dashboard-cards {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin: 18px 0 25px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .dashboard-card {
        padding: 14px 10px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .dashboard-card h2 {
        font-size: 1.6rem !important;
    }

    .quick-actions-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .quick-action {
        padding: 12px 10px !important;
        font-size: 0.82rem !important;
        box-sizing: border-box !important;
    }

    .quick-action i {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.95rem !important;
    }

    .profile-table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    .header {
        height: 72px !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .navbar {
        height: 72px !important;
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .logo img {
        height: 40px !important;
    }

    .footer {
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
}

/* ==========================================
   PRODUCT DETAIL PAGE (product.html) MOBILE RESPONSIVE
========================================== */

@media (max-width: 992px) {
    .product-page {
        padding: 30px 0 90px !important;
    }

    .product-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .product-gallery {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .main-image {
        padding: 25px 15px !important;
        border-radius: 24px !important;
        background: #FAF8F5 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 280px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
        border: 1px solid #E8E2D9 !important;
    }

    .main-image img {
        max-height: 260px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
        margin: 0 auto !important;
    }

    .thumbnail-images {
        justify-content: center !important;
        gap: 10px !important;
        margin-top: 15px !important;
        overflow-x: auto !important;
        padding-bottom: 5px !important;
    }

    .thumbnail-images img {
        width: 65px !important;
        height: 65px !important;
        border-radius: 14px !important;
        padding: 6px !important;
        background: #FAF8F5 !important;
        flex-shrink: 0 !important;
        border: 1px solid #E8E2D9 !important;
    }

    .product-details {
        width: 100% !important;
        gap: 16px !important;
    }

    .product-details h1 {
        font-size: 2.1rem !important;
        line-height: 1.2 !important;
        margin: 8px 0 6px !important;
        font-weight: 700 !important;
        color: #2E2A26 !important;
        font-family: 'Cormorant Garamond', serif !important;
    }

    .product-rating {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }

    .product-details .price {
        font-size: 2.1rem !important;
        margin: 8px 0 !important;
        font-weight: 700 !important;
        color: #8B6B4A !important;
    }

    .product-details p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 16px !important;
        color: #666666 !important;
    }

    .quantity-box {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 140px !important;
        height: 48px !important;
        border-radius: 30px !important;
        padding: 0 16px !important;
        border: 1px solid #E8E2D9 !important;
        background: #FAF8F5 !important;
    }

    .product-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 18px !important;
        width: 100% !important;
    }

    .product-actions .btn-primary,
    .product-actions .btn-outline,
    .product-actions button,
    .product-actions a {
        width: 100% !important;
        padding: 15px !important;
        font-size: 1rem !important;
        border-radius: 30px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        box-sizing: border-box !important;
    }

    .ingredients, .benefits {
        margin-top: 18px !important;
        background: #FAF8F5 !important;
        padding: 20px !important;
        border-radius: 18px !important;
        border: 1px solid #E8E2D9 !important;
    }

    .ingredients h4, .benefits h4 {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
        color: #8B6B4A !important;
        font-family: 'Cormorant Garamond', serif !important;
    }
}

@media (max-width: 576px) {
    .product-details h1 {
        font-size: 1.8rem !important;
    }

    .product-details .price {
        font-size: 1.9rem !important;
    }

    .main-image {
        min-height: 240px !important;
        padding: 18px !important;
    }

    .main-image img {
        max-height: 220px !important;
    }
}



