*html{
    scroll-behavior: smooth;
}

 *{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
body{
    font-family:'Poppins', sans-serif;
    background:#f8f8f8;
}

header{
    position:sticky;
    top:0;
    z-index:1000;

    background:#111;
    color:white;

    padding:18px 40px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    box-shadow:0 6px 18px rgba(0,0,0,.15);
}
header h1{
    margin:0;
    font-size:30px;
    letter-spacing:2px;
    color:gold;
}
nav{
    display:flex;
    align-items:center;
    gap:25px;
}

nav a{
    color:white;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

nav a:hover{
    color:gold;
}
#cart {
    color: white;
    margin-left: 30px;
    font-weight: bold;
    cursor: pointer;
}

.hero{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:60px;

    padding:80px 60px;

    background:linear-gradient(to right,#fff,#f8f8f8);
}

.hero-text{
    flex: 1;
}

.hero-text h2{
    font-size:50px;
    color:#5b0f28;
    margin-bottom:20px;
}

.hero-text p{
    font-size:20px;
    margin-bottom:30px;
    line-height:1.6;
}

.hero-text button{
    background:gold;
    color:#5b0f28;
    border:none;
    padding:15px 35px;
    font-size:18px;
    border-radius:8px;
    cursor:pointer;
}
..hero-image img{
    flex:  1;
    display: flex;
    justify-content: center;       
}
.hero-image img{
    width:100%;
    max-width:600px;
    border-radius:20px;
    box-shadow:0 12px 30px rgba(0,0,0,.25);
}
.products{
    padding:60px;
    background:#f8f8f8;
    text-align:center;
}

.products h2{
    font-size:36px;
    color:#5b0f28;
    margin-bottom:40px;
}

.product-container{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
}

.product-card{
    background:white;
    width:280px;
    padding:25px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.product-card h3{
    color:#5b0f28;
    margin-bottom:15px;
}

.product-card p{
    margin-bottom:20px;
    line-height:1.6;
}

.product-card button{
    background:gold;
    color:#5b0f28;
    border:none;
    padding:12px 25px;
    border-radius:8px;
    cursor:pointer;
}
.product-card img{

    width:100%;

    height:340px;

    object-fit:contain;

    transition:.4s;

    .product-card:hover img{

    transform:scale(1.05);

}

}
}
.products{
    padding:80px 10%;
    text-align:center;
    background:#f8f8f8;
}

.products h2{
    font-size:38px;
    color:#5b0f28;
    margin-bottom:40px;
}

.product-container{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
}

.product-card {

    background: white;

    border-radius: 18px;

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0,0,0,.12);

    transition: .35s;

    padding-bottom: 20px;
}

.product-card:hover{

    transform: translateY(-10px);

    box-shadow:0 18px 40px rgba(0,0,0,.18);

}
}

.product-card h3{
    color:#5b0f28;
    margin:15px 0;
}

.product-card p{
    color:#555;
    margin-bottom:15px;
}

.product-card button{
    background:gold;
    color:#5b0f28;
    border:none;
    padding:12px 25px;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
}
.about{
    padding:80px 10%;
    background:#fff;
    text-align:center;
}

.about h2{
    font-size:40px;
    color:#5b0f28;
    margin-bottom:25px;
}

.about p{
    max-width:700px;
    margin:20px auto;
    font-size:18px;
    line-height:1.8;
    color:#555;
}

.about button{
    background:gold;
    color:#5b0f28;
    border:none;
    padding:15px 35px;
    font-size:18px;
    border-radius:8px;
    cursor:pointer;
    margin-top:20px;
    transition:0.3s;
}

.about button:hover{
    background:#5b0f28;
    color:white;
}
.contact{
    padding:80px 10%;
    background:#f8f8f8;
    text-align:center;
}

.contact h2{
    font-size:38px;
    color:#5b0f28;
    margin-bottom:25px;
}

.contact p{
    font-size:18px;
    color:#555;
    margin:15px 0;
}

.contact button{
    margin-top:25px;
    background:gold;
    color:#5b0f28;
    border:none;
    padding:15px 35px;
    border-radius:8px;
    cursor:pointer;
    font-size:18px;
    font-weight:bold;
    transition:0.3s;
}

.contact button:hover{
    background:#5b0f28;
    color:white;
}

footer{
    background:#5b0f28;
    color:white;
    text-align:center;
    padding:25px;
    font-size:16px;
}
.product-card:hover{
    transform: translateY(-10px);
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {

    header {
        flex-direction: column;
        text-align: center;
    }

    nav {
        margin-top: 15px;
    }

    nav a {
        display: inline-block;
        margin: 10px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .hero-text {
        margin-bottom: 20px;
    }

    .hero-image img {
        width: 100%;
        max-width: 400px;
    }

    .product-container {
        flex-direction: column;
        align-items: center;
    }

    .product-card {
        width: 90%;
        margin-bottom: 20px;
    }

    .about-text,
    .contact {
        padding: 20px;
    }
}
.product-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.product-card {
    width: 100%;
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) 
    .product-container {
        grid-template-columns: 1fr;
    }
}
.image-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 15px;
}

.image-buttons button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.image-buttons button:hover {
    transform: scale(1.1);
}
.thumbnails {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
}

.thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: 0.3s;
}

.thumbnails img:hover {
    border-color: gold;
    transform: scale(1.1);
}
}

.thumbnails img:hover {
    border-color: gold;
    transform: scale(1.1);
}
function changeCapImage(imagePath) {
    const capImage = document.getElementById("cap-image");
    capImage.src = imagePath;
}
.price {
    font-size: 20px;
    font-weight: bold;
    color: #5b0f28;
    margin: 10px 0;
}
.badge{
    position:absolute;
    top:15px;
    left:15px;
    background:red;
    color:white;
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:bold;
    z-index:10;
}.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 30px;
}

.filter-buttons button {
    border: none;
    background: #5b0f28;
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    cursor: pointer;
}

.filter-buttons button:hover {
    background: gold;
    color: #5b0f28;
}
.search-box {
    display: flex;
    justify-content: center;
    margin: 20px 0 30px;
}

.search-box input {
    width: 320px;
    max-width: 90%;
    padding: 12px 18px;
    border: 2px solid #5b0f28;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
}

.search-box input:focus {
    border-color: gold;
}
#cart {
    text-decoration: none;
    color: white;
    background: #008000;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
}

#cart:hover {
    background: #006400;
}
/* Cart page styling */

body {
    font-family: Arial, sans-serif;
}

#cart-items {
    max-width: 700px;
    margin: 30px auto;
}

.cart-item {
    background: white;
    padding: 18px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.cart-item p {
    margin: 0;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-item {
    background: crimson;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.remove-item:hover {
    background: darkred;
}

#total-price {
    max-width: 700px;
    margin: 20px auto;
    padding: 18px;
    background: #f5f5f5;
    border-radius: 10px;
    text-align: right;
}

#checkout-btn {
    display: block;
    margin: 20px auto;
    background: #25d366;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 17px;
    cursor: pointer;
}

#checkout-btn:hover {
    background: #128c4a;
}
.cart-title {
    text-align: center;
    margin-top: 30px;
}
.order-summary {
    width: 320px;
    margin: 30px auto;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    text-align: center;
}

.order-summary h2 {
    margin-bottom: 15px;
}

#item-count {
    font-size: 18px;
    margin-bottom: 15px;
    color: #555;
}

#total-price {
    color: #8b0000;
    font-size: 28px;
    font-weight: bold;
    margin: 20px 0;
}

#checkout-btn {
    width: 100%;
    background: #25D366;
    color: white;
    border: none;
    padding: 15px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: .3s;
}

#checkout-btn:hover {
    background: #128C7E;
}
.cart-product {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-product-image {
    width: 90px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-product-details {
    flex: 1;
}

.cart-product-details h3 {
    margin: 0 0 8px;
}

.cart-product-details p {
    margin: 0;
    font-weight: bold;
}
.quantity-controls{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:10px;
}

.quantity-controls button{
    width:30px;
    height:30px;
    border:none;
    border-radius:5px;
    background:#222;
    color:#fff;
    font-size:18px;
    cursor:pointer;
}

.quantity-controls button:hover{
    background:#f39c12;
}

.quantity-controls span{
    font-size:18px;
    font-weight:bold;
    min-width:20px;
    text-align:center;
}
.customer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.customer-form input,
.customer-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 7px;
    font-size: 15px;
    box-sizing: border-box;
}

.customer-form textarea {
    min-height: 90px;
    resize: vertical;
}

.customer-form input:focus,
.customer-form textarea:focus {
    outline: none;
    border-color: #25d366;
}
.admin-form{
    width:500px;
    margin:40px auto;
    display:flex;
    flex-direction:column;
    gap:15px;
}

.admin-form input,
.admin-form textarea{
    padding:12px;
    font-size:16px;
    border-radius:8px;
    border:1px solid #ccc;
}

.admin-form button{
    background:#006400;
    color:white;
    border:none;
    padding:15px;
    font-size:18px;
    border-radius:8px;
    cursor:pointer;
}

.admin-form button:hover{
    background:#228B22;

}

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    .products-container {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
        gap: 25px;
    }

    .product-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .product-card > img {
        width: 100%;
        height: auto;
        max-height: 420px;
        object-fit: contain;
    }

    .thumbnails {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .thumbnails img {
        width: 65px;
        height: 65px;
        object-fit: cover;
    }

    .product-card button {
        width: 100%;
        margin: 5px 0;
    }

    .product-card a {
        display: block;
        width: 100%;
    }
}
.admin-products-section {
    margin-top: 40px;
    padding: 20px;
}

#admin-products-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

#admin-products-list > div {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    text-align: center;
}

#admin-products-list img {
    width: 180px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin: 0 auto 15px;
}

#admin-products-list h3 {
    margin: 12px 0 6px;
}

#admin-products-list p {
    font-weight: bold;
    margin-bottom: 12px;
}

#admin-products-list button {
    padding: 9px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin: 4px;
    color: white;
}

#admin-products-list button:first-of-type {
    background: #198754;
}

#admin-products-list button:last-of-type {
    background: #dc3545;
}

#admin-products-list button:hover {
    opacity: 0.85;
}

.admin-header {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: white;
    padding: 35px 20px;
    border-radius: 0 0 20px 20px;
    margin-bottom: 30px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.admin-header h1 {
    font-size: 34px;
    margin: 0;
}

.admin-header p {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 16px;
    opacity: 0.9;
}

.dashboard-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px auto;
    flex-wrap: wrap;
}

.dashboard-card {
    width: 220px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,.15);
    transition: .3s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card h2 {
    font-size: 32px;
    color: #2e7d32;
    margin-bottom: 10px;
}

.dashboard-card p {
    color: #666;
    font-weight: bold;
}

.admin-search-box {
    max-width: 500px;
    margin: 30px auto 20px;
}

#admin-product-search {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
}

#admin-product-search:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.add-to-cart:disabled {
    background: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

.stock {
    font-weight: bold;
    color: #2e7d32;
}

/* ===========================
   ADMIN LOGIN
=========================== */

.admin-login-page{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#f5f5f5;
    padding:20px;
}

.admin-login-box{
    width:100%;
    max-width:400px;
    background:#ffffff;
    padding:35px;
    border-radius:12px;
    box-shadow:0 8px 20px rgba(0,0,0,.12);
    text-align:center;
}

.admin-login-box h1{
    margin-bottom:10px;
    color:#222;
}

.admin-login-box p{
    color:#666;
    margin-bottom:20px;
}

.admin-login-box input{
    width:100%;
    padding:14px;
    margin-bottom:15px;
    border:1px solid #ccc;
    border-radius:8px;
    font-size:16px;
    outline:none;
    box-sizing:border-box;
}

.admin-login-box input:focus{
    border-color:#0066cc;
}

.admin-login-box button{
    width:100%;
    padding:14px;
    border:none;
    border-radius:8px;
    background:#0066cc;
    color:white;
    font-size:16px;
    cursor:pointer;
    transition:.3s;
}

.admin-login-box button:hover{
    background:#004fa3;
}

#login-message{
    margin-top:15px;
    font-weight:bold;
}

.admin-login-box a{
    display:inline-block;
    margin-top:20px;
    text-decoration:none;
    color:#0066cc;
}

.admin-login-box a:hover{
    text-decoration:underline;
}

/* Admin logout button */

.logout-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: #c62828;
    color: white;
    font-size: 15px;
    cursor: pointer;
}

.logout-btn:hover {
    background: #991f1f;
}

/* ===========================
   PRODUCT DETAILS PAGE
=========================== */

.product-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 30px;
    background: #111;
    color: white;
}

.product-details-header h1 {
    margin: 0;
    font-size: 24px;
}

.product-details-header a {
    color: white;
    text-decoration: none;
}

.product-details-header a:hover {
    text-decoration: underline;
}

.product-details-page {
    min-height: 100vh;
    padding: 40px 20px;
    background: #f6f6f6;
}

.product-details-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-details-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-details-image {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 12px;
}

.product-details-info h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 32px;
}

.product-details-description {
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.product-details-price {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-details-stock {
    font-weight: bold;
    margin-bottom: 20px;
}

.product-details-info .add-to-cart {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #111;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.product-details-info .add-to-cart:hover {
    background: #333;
}

.product-details-info .add-to-cart:disabled {
    background: #999;
    cursor: not-allowed;
}

.product-not-found {
    text-align: center;
    padding: 40px 10px;
}

@media (max-width: 768px) {
    .product-details-header {
        flex-direction: column;
        text-align: center;
    }

    .product-details-content {
        grid-template-columns: 1fr;
    }

    .product-details-container {
        padding: 20px;
    }

    .product-details-info h2 {
        font-size: 26px;
    }
}

.product-details-link {
    color: inherit;
    text-decoration: none;
}

.product-details-link:hover {
    text-decoration: underline;
}

.product-card .main-product-image {
    cursor: pointer;
}

/* ===========================
   WISHLIST PAGE
=========================== */

.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 30px;
    background: #111;
    color: white;
}

.wishlist-header h1 {
    margin: 0;
    font-size: 24px;
}

.wishlist-header a {
    color: white;
    text-decoration: none;
}

.wishlist-header a:hover {
    text-decoration: underline;
}

.wishlist-page {
    min-height: 100vh;
    padding: 40px 20px;
    background: #f6f6f6;
}

.wishlist-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.wishlist-card {
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.wishlist-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.wishlist-card h3 {
    margin-bottom: 10px;
}

.wishlist-card .price {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 15px;
}

.wishlist-card button,
.wishlist-card a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
}

.wishlist-add-cart {
    background: #111;
    color: white;
}

.wishlist-add-cart:hover {
    background: #333;
}

.remove-wishlist {
    background: #c62828;
    color: white;
}

.remove-wishlist:hover {
    background: #991f1f;
}

.view-product-link {
    background: #eeeeee;
    color: #111;
}

.empty-wishlist {
    grid-column: 1 / -1;
    text-align: center;
    background: white;
    padding: 40px 20px;
    border-radius: 12px;
}

@media (max-width: 600px) {
    .wishlist-header {
        flex-direction: column;
        text-align: center;
    }
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.product-thumbnail {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
}

.product-thumbnail:hover {
    border-color: #d4af37;
}

.product-options {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.product-options p {
    margin: 8px 0;
}

.main-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 22px;
    cursor: pointer;
    z-index: 5;
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.gallery-arrow:hover {
    background: #d4af37;
    color: #111;
}

.product-gallery {
    width: 100%;
    max-width: 520px;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.product-details-image {
    width: 100%;
    height: 520px;
    object-fit: contain;
    display: block;
    border-radius: 14px;
    background: white;
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.product-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.product-thumbnail {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
}

.product-thumbnails {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.product-thumbnail {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    display: block;
}

.product-thumbnail:hover,
.product-thumbnail.active-thumbnail {
    border-color: #d4af37;
    transform: scale(1.05);
}

.main-image-wrapper {
    overflow: hidden;
}

.product-details-image {
    transition: transform 0.25s ease;
    cursor: zoom-in;
}

.product-search-box {
    max-width: 600px;
    margin: 30px auto 20px;
    padding: 0 15px;
}

#product-search {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

#product-search:focus {
    outline: none;
    border-color: #3f8f3f;
}

.admin-dashboard-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px auto;
    padding: 15px;
}

.admin-dashboard-nav a,
.admin-dashboard-nav button {
    background: #1b5e20;
    color: white;
    text-decoration: none;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    transition: 0.3s;
}

.admin-dashboard-nav a:hover,
.admin-dashboard-nav button:hover {
    background: #2e7d32;
    transform: translateY(-2px);
}

/* =========================
   NANA COLLECTION V2 HEADER
========================= */

.luxury-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    min-height: 82px;
    padding: 14px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #ffffff;
    color: #111111;
    border-bottom: 1px solid #eeeeee;
    box-shadow: none;
}

.menu-button,
.close-menu {
    border: none;
    background: transparent;
    color: #111111;
    cursor: pointer;
}

.menu-button {
    font-size: 28px;
    line-height: 1;
    padding: 8px;
}

.brand-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;

    color: #111111;
    text-decoration: none;
    line-height: 1;
}

.brand-logo span {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    letter-spacing: 5px;
}

.brand-logo small {
    margin-top: 7px;
    font-size: 8px;
    letter-spacing: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.search-button,
.cart-button {
    position: relative;
    color: #111111;
    text-decoration: none;
    font-size: 25px;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -10px;

    min-width: 18px;
    height: 18px;
    padding: 0 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #b89443;
    color: #ffffff;
    border-radius: 50%;

    font-family: Arial, sans-serif;
    font-size: 10px;
}

/* Dark background behind the open menu */

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;

    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;

    transition: opacity 0.35s ease,
                visibility 0.35s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Slide-out mobile menu */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;

    width: min(82%, 390px);
    height: 100vh;
    padding: 28px 30px;

    display: flex;
    flex-direction: column;

    background: #ffffff;
    color: #111111;

    transform: translateX(-100%);
    transition: transform 0.35s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    padding-bottom: 28px;
    border-bottom: 1px solid #eeeeee;
}

.menu-brand {
    display: flex;
    flex-direction: column;
}

.menu-brand span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    letter-spacing: 4px;
}

.menu-brand small {
    margin-top: 7px;
    font-size: 8px;
    letter-spacing: 4px;
}

.close-menu {
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
}

.mobile-navigation {
    display: flex;
    flex-direction: column;
    gap: 26px;

    padding: 38px 0;
}

.mobile-navigation a {
    color: #111111;
    text-decoration: none;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 400;
}

.mobile-navigation a:hover {
    color: #b89443;
}

.mobile-account-links {
    margin-top: auto;
    padding-top: 24px;

    display: flex;
    flex-direction: column;
    gap: 15px;

    border-top: 1px solid #eeeeee;
}

.mobile-account-links a,
#user-info {
    color: #555555;
    text-decoration: none;
    font-size: 16px;
}

/* Desktop adjustment */

@media (min-width: 768px) {
    .luxury-header {
        min-height: 96px;
        padding: 18px 50px;
    }

    .brand-logo span {
        font-size: 27px;
    }

    .menu-button {
        font-size: 30px;
    }
}

/* =========================
   NANA COLLECTION V2 HERO
========================= */

.hero {
    width: 100%;
    justify-items: center;
    padding: 70px 22px 40px;

    display: flex;
    flex-direction: column;
    gap: 42px;

    background: #ffffff;
}

.hero-content {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.hero-label {
    margin-bottom: 18px;

    color: #b89443;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
}

.hero h1 {
    margin: 0;

    color: #171717;
    font-family: "Playfair Display", serif;
    font-size: clamp(46px, 13vw, 72px);
    font-weight: 400;
    line-height: 1.05;
}

.hero-description {
    max-width: 540px;
    margin: 24px auto 0;

    color: #5f5f5f;
    font-size: 16px;
    line-height: 1.8;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 210px;
    margin-top: 32px;
    padding: 16px 28px;

    background: #171717;
    color: #ffffff;
    border: 1px solid #171717;

    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.hero-button:hover {
    background: transparent;
    color: #171717;
}

.hero-image {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;

    border-radius: 2px;
    background: #f3f3f3;
}

.hero-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (min-width: 900px) {
    .hero {
        min-height: calc(100vh - 96px);
        padding: 70px 6%;

        display: grid;
        grid-template-columns: 0.8fr 1.2fr;
        align-items: center;
        gap: 65px;
    }

    .hero-content {
        width:  100%;
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .hero-description {
        margin-left: 0;
    }

    .hero h1 {
        font-size: clamp(58px, 6vw, 92px);
    }

    .hero-image {
        height: 650px;
    }

    .hero-image img {
        height: 100%;
    }
}

/* ===========================
   Featured Collections
=========================== */

.collections{
    padding:100px 8%;
    background:#faf9f6;
}

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

.section-title p{
    letter-spacing:4px;
    color:#b89443;
    font-size:13px;
    font-weight:600;
    text-transform:uppercase;
}

.section-title h2{
    font-family:"Playfair Display", serif;
    font-size:42px;
    margin-top:12px;
    color:#171717;
}

.collection-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:40px;
}

.collection-card{
    position:relative;
    overflow:hidden;
    border-radius:20px;
    cursor:pointer;
    transition:.4s ease;
}

/* ===========================
   Featured Collections
=========================== */

.collections{
    padding:140px 8% 100px;
    background:#faf9f6;
}

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

.section-title p{
    letter-spacing:4px;
    color:#b89443;
    font-size:13px;
    font-weight:600;
    text-transform:uppercase;
}

.section-title h2{
    font-family:"Playfair Display", serif;
    font-size:42px;
    margin-top:12px;
    color:#171717;
}

.collection-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:35px;
}

.collection-card{
    position:relative;
    overflow:hidden;
    border-radius:20px;
    cursor:pointer;
    transition:.4s ease;
}

.collection-card:hover{
    transform:translateY(-8px);
    box-shadow:0 25px 60px rgba(0,0,0,.15);
}

.collection-card img{
    width:100%;
    height:420px;
    object-fit:cover;
    transition:.6s ease;
}

.collection-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(to top,
    rgba(0,0,0,.75),
    rgba(0,0,0,.15));
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:30px;
}

.collection-card:hover .collection-overlay{
    background:linear-gradient(
        to top,
        rgba(0,0,0,.82),
        rgba(0,0,0,.25)
    );
}

.collection-overlay h3{
    color:white;
    font-size:28px;
    font-family:"Playfair Display", serif;
}

.collection-overlay a{
    margin-top:12px;
    color:#d4af37;
    text-decoration:none;
    font-weight:600;
}

.collection-card:hover img{
    transform:scale(1.08);
}

.collection-card img{
    width:100%;
    height:340px;
    object-fit:cover;
    transition:.5s;
}

.collection-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(to top,
    rgba(0,0,0,.75),
    rgba(0,0,0,.15));
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:30px;
}

.collection-overlay h3{
    color:white;
    font-size:28px;
    font-family:"Playfair Display", serif;
}

.collection-overlay a{
    margin-top:12px;
    color:#d4af37;
    text-decoration:none;
    font-weight:600;
}

.collection-card:hover img{
    transform:scale(1.08);
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 88%;
        padding: 24px;
    }

    .mobile-navigation {
        gap: 20px;
        padding: 30px 0;
    }

    .mobile-navigation a {
        font-size: 25px;
    }

    .menu-brand span {
        font-size: 21px;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 88%;
        padding: 24px;
    }

    .mobile-navigation {
        gap: 20px;
        padding: 30px 0;
    }

    .mobile-navigation a {
        font-size: 25px;
    }

    .menu-brand span {
        font-size: 21px;
    }
}

/* WHY CHOOSE US */

.why-us {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 60px 8%;
    background: #faf8f5;
}

.why-card{
    background:white;
    padding:40px 30px;
    border-radius:18px;
    text-align:center;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
    transition:.4s;
}

.why-card:hover{
    transform:translateY(-10px);
    box-shadow:0 25px 50px rgba(0,0,0,.12);
}

.why-card h3{
    margin-bottom:18px;
    font-size:24px;
    color:#1a1a1a;
}

.why-card p{
    color:#666;
    line-height:1.8;
}

@media (max-width: 800px) {
    .why-us {
        grid-template-columns: 1fr;
        padding: 60px 22px;
    }
}

/* SECTION TITLE */

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

.section-title span{
    display:inline-block;
    color:#b89443;
    letter-spacing:4px;
    font-size:13px;
    margin-bottom:15px;
}

.section-title h2{
    font-size:46px;
    margin:0;
    color:#1a1a1a;
    font-family:Georgia, serif;
}

.section-title p{
    max-width:650px;
    margin:20px auto 0;
    color:#666;
    line-height:1.8;
}

/* =========================
   LUXURY PRODUCT CARDS
========================= */

.product-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    position: relative;
    width: 100%;
    padding: 0 0 24px;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);

    text-align: left;
    transition: transform 0.35s ease,
                box-shadow 0.35s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
}

.product-card img {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;

    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.04);
}

.product-card h3 {
    margin: 22px 20px 8px;

    color: #171717;
    font-family: "Playfair Display", serif;
    font-size: 22px;
    font-weight: 500;
}

.product-card p {
    margin: 0 20px 16px;
    color: #777777;
    line-height: 1.6;
}

.product-card .price {
    display: block;
    margin: 0 20px 18px;

    color: #9b7837;
    font-size: 18px;
    font-weight: 600;
}

.product-card button {
    width: calc(100% - 40px);
    min-height: 48px;
    margin: 0 20px 12px;

    border: 1px solid #171717;
    background: #171717;
    color: #ffffff;

    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    cursor: pointer;
    transition: background 0.25s ease,
                color 0.25s ease;
}

.product-card button:hover {
    background: #ffffff;
    color: #171717;
}

@media (max-width: 900px) {
    .product-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 520px) {
    .products {
        padding: 60px 16px;
    }

    .product-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card {
        border-radius: 10px;
        padding-bottom: 16px;
    }

    .product-card img {
        height: 220px;
    }

    .product-card h3 {
        margin: 14px 12px 6px;
        font-size: 16px;
    }

    .product-card p {
        margin: 0 12px 10px;
        font-size: 12px;
    }

    .product-card .price {
        margin: 0 12px 12px;
        font-size: 15px;
    }

    .product-card button {
        width: calc(100% - 24px);
        min-height: 42px;
        margin: 0 12px 8px;
        padding: 10px 6px;
        font-size: 10px;
        letter-spacing: 0.7px;
    }
}

/* =====================================
   LUXURY PRODUCT DETAILS PAGE
===================================== */

.product-details-page {
    min-height: 100vh;
    padding: 60px 6%;
    background: #faf9f6;
}

.product-details-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
}

/* Overrides the normal product-card design */
.product-details-container .product-details-content {
    width: 100%;
    max-width: none;
    padding: 40px;
    margin: 0;

    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 65px;
    align-items: start;

    background: #ffffff;
    border: 1px solid #eee9e0;
    border-radius: 4px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.07);

    text-align: left;
    overflow: visible;
    transform: none;
}

.product-details-container .product-details-content:hover {
    transform: none;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.07);
}

/* Product gallery */

.product-gallery {
    min-width: 0;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;

    background: #f4f2ed;
    border-radius: 3px;
}

.product-details-container .product-details-image {
    display: block;
    width: 100%;
    height: 650px;
    object-fit: cover;

    transition: transform 0.5s ease;
}

.main-image-wrapper:hover .product-details-image {
    transform: scale(1.025);
}

/* Gallery arrows */

.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);

    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: #171717;

    font-size: 22px;
    cursor: pointer;
}

.gallery-prev {
    left: 18px;
}

.gallery-next {
    right: 18px;
}

.gallery-arrow:hover {
    background: #171717;
    color: #ffffff;
}

/* Thumbnails */

.product-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.product-thumbnail {
    flex: 0 0 82px;
    width: 82px;
    height: 100px;

    object-fit: cover;
    border: 1px solid transparent;
    border-radius: 2px;

    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.25s ease,
                border-color 0.25s ease;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    opacity: 1;
    border-color: #b89443;
}

/* Product information */

.product-details-info {
    position: sticky;
    top: 125px;
    padding: 20px 0;
}

.product-details-info::before {
    content: "NANA COLLECTION";
    display: block;
    margin-bottom: 18px;

    color: #a37b36;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
}

.product-details-info h2 {
    margin: 0 0 22px;

    color: #171717;
    font-family: "Playfair Display", serif;
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 500;
    line-height: 1.12;
}

.product-details-description {
    margin: 0 0 25px;

    color: #666666;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    line-height: 1.9;
}

.product-details-price {
    margin: 0 0 18px;

    color: #171717;
    font-family: "Poppins", sans-serif;
    font-size: 27px;
    font-weight: 600;
}

.product-details-stock {
    display: inline-flex;
    margin: 0 0 30px;
    padding: 8px 13px;

    background: #f3efe7;
    color: #80622e;

    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Product action buttons */

.product-details-info button:not(.gallery-arrow) {
    width: 100%;
    min-height: 54px;
    margin: 0 0 12px;
    padding: 14px 20px;

    border: 1px solid #171717;
    border-radius: 0;
    background: #171717;
    color: #ffffff;

    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.7px;
    text-transform: uppercase;

    cursor: pointer;
    transition: background 0.25s ease,
                color 0.25s ease;
}

.product-details-info button:not(.gallery-arrow):hover {
    background: #ffffff;
    color: #171717;
}

/* Product details header */

.product-details-header {
    min-height: 86px;
    padding: 18px 6%;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.product-details-header h1 {
    margin: 0;

    color: #171717;
    font-family: "Playfair Display", serif;
    font-size: 25px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.product-details-header > a:first-child {
    justify-self: start;
}

.product-details-header > a:last-child {
    justify-self: end;
}

.product-details-header a {
    color: #333333;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
}

/* Tablet and mobile */

@media (max-width: 900px) {
    .product-details-page {
        padding: 35px 22px 60px;
    }

    .product-details-container .product-details-content {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 22px;
    }

    .product-details-info {
        position: static;
        padding: 0 0 10px;
    }

    .product-details-container .product-details-image {
        height: 560px;
    }
}

@media (max-width: 520px) {
    .product-details-header {
        min-height: 72px;
        padding: 14px 16px;
    }

    .product-details-header h1 {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .product-details-header a {
        font-size: 11px;
    }

    .product-details-page {
        padding: 20px 12px 45px;
    }

    .product-details-container .product-details-content {
        padding: 12px;
        gap: 28px;
        box-shadow: none;
    }

    .product-details-container .product-details-image {
        height: 430px;
    }

    .product-details-info h2 {
        font-size: 36px;
    }

    .product-details-price {
        font-size: 23px;
    }

    .gallery-arrow {
        width: 38px;
        height: 38px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .product-thumbnail {
        flex-basis: 66px;
        width: 66px;
        height: 82px;
    }
}

/* PRODUCT DETAILS FINAL POLISH */

.product-details-container .gallery-arrow {
    width: 44px !important;
    min-width: 44px;
    height: 44px !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

.product-details-container .gallery-prev {
    left: 14px;
}

.product-details-container .gallery-next {
    right: 14px;
}

.product-details-info select {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    padding: 10px 14px;

    border: 1px solid #d8d3ca;
    background: #ffffff;
    color: #333333;

    font-family: "Poppins", sans-serif;
    font-size: 14px;
    outline: none;
}

.product-details-info select:focus {
    border-color: #a37b36;
}

.product-details-info label {
    display: block;
    margin-top: 18px;

    color: #333333;
    font-size: 13px;
    font-weight: 500;
}

.product-details-content {
    max-width: 100%;
}

.product-gallery,
.main-image-wrapper,
.product-details-info {
    min-width: 0;
}

body {
    overflow-x: hidden;
}

.related-products-section{
    margin-top:60px;
}

.related-products-section h2{
    text-align:center;
    margin-bottom:30px;
    font-size:32px;
}

#related-products{
    display:flex;
    gap:25px;
    flex-wrap:wrap;
    justify-content:center;
}

.related-products-section {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 45px;
    padding-top: 45px;
    border-top: 1px solid #ece7de;
}

.related-products-section h2 {
    margin: 0 0 30px;
    text-align: center;
    color: #171717;
    font-family: "Playfair Display", serif;
    font-size: 36px;
    font-weight: 500;
}

#related-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

@media (max-width: 900px) {
    #related-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .related-products-section {
        margin-top: 30px;
        padding-top: 30px;
    }

    .related-products-section h2 {
        font-size: 28px;
    }

    #related-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

.related-products-section {
    width: 100%;
    margin-top: 50px;
    padding: 40px 20px;
    border-top: 1px solid #e8e1d8;
}

.related-products-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-family: "Playfair Display", serif;
    font-size: 36px;
}

#related-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

#related-products .product-card {
    width: 100%;
    padding: 18px;
}

#related-products .product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 900px) {
    #related-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    #related-products {
        grid-template-columns: 1fr;
    }

    .related-products-section h2 {
        font-size: 28px;
    }
}

.related-products-section {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 40px 20px;
    box-sizing: border-box;
}

.related-products-section h2 {
    text-align: center;
    margin-bottom: 35px;
}

#related-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
    gap: 25px;
    justify-content: center;
    width: 100%;
}

#related-products .product-card {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 18px;
    box-sizing: border-box;
}

#related-products .product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

#related-products .product-card h3,
#related-products .product-card .price,
#related-products .view-product-link {
    text-align: center;
}

@media (max-width: 1000px) {
    #related-products {
        grid-template-columns: repeat(2, minmax(220px, 280px));
    }
}

@media (max-width: 600px) {
    #related-products {
        grid-template-columns: minmax(220px, 280px);
    }
}

#related-products .view-product-link {
    display: inline-block;
    margin-top: 12px;
    margin-bottom: 8px;
}

/* =========================
   CUSTOMER REVIEWS
========================= */

.product-reviews-section{
    margin-top:60px;
    padding:40px;
    background:#fff;
    border-radius:16px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
}

.product-reviews-section h2{
    font-size:32px;
    margin-bottom:25px;
    text-align:center;
    font-family:"Playfair Display", serif;
}

.review-form{
    display:flex;
    flex-direction:column;
    gap:15px;
    max-width:600px;
    margin:0 auto 40px;
}

.review-form select,
.review-form textarea{
    padding:14px;
    border:1px solid #ddd;
    border-radius:8px;
    font-size:16px;
}

.review-form textarea{
    min-height:120px;
    resize:vertical;
}

#submit-review-btn{
    background:#111;
    color:#fff;
    border:none;
    padding:14px;
    border-radius:8px;
    cursor:pointer;
    font-size:16px;
    transition:.3s;
}

#submit-review-btn:hover{
    background:#333;
}

#reviews-list{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.review-card{
    border-bottom:1px solid #eee;
    padding-bottom:20px;
}

.review-stars{
    color:#f5b301;
    font-size:20px;
    margin-bottom:6px;
}

.review-name{
    font-weight:bold;
}

.review-date{
    color:#777;
    font-size:14px;
}

.mobile-menu {
    overflow-y: auto;
    max-height: 100vh;
}

.mobile-navigation,
.mobile-account-links {
    flex-shrink: 0;
}

.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-account-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 28px;
    margin-bottom: 20px;
    border-top: 1px solid #e7dfd4;
    border-bottom: 1px solid #e7dfd4;
}

.mobile-account-links #user-info {
    font-weight: 600;
    font-size: 16px;
    color: #8a6a35;
}

.mobile-account-links a {
    color: #111;
    text-decoration: none;
    font-size: 16px;
}

.mobile-account-links a:hover {
    color: #9a7738;
}

.mobile-navigation {
    padding-top: 5px;
}

/* Mobile Hero Fix */
@media (max-width: 768px) {

    .hero-title {
        font-size: 58px;
        line-height: 1.05;
        text-align: center;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 18px;
        line-height: 1.7;
        padding: 0 20px;
    }

    .hero-content {
        padding: 60px 20px;
    }

}

/* =========================
   MOBILE HEADER ALIGNMENT
========================= */

@media (max-width: 768px) {
    .luxury-header {
        position: relative;
        display: grid;
        grid-template-columns: 50px 1fr 80px;
        align-items: center;
        width: 100%;
        min-height: 110px;
        padding: 20px 16px;
        box-sizing: border-box;
    }

    .menu-button {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        justify-self: start;
        z-index: 2;
    }

    .brand-logo {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        justify-self: center;
        text-align: center;
        z-index: 1;
    }

    .header-actions {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        justify-self: end;
        display: flex;
        align-items: center;
        gap: 12px;
        z-index: 2;
    }
}

/* ==========================
   PAGE LOADER
========================== */

.page-loader{
    position:fixed;
    inset:0;
    background:#ffffff;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:99999;
    transition:opacity .6s ease, visibility .6s ease;
}

.page-loader.hide{
    opacity:0;
    visibility:hidden;
}

.loader-content{
    text-align:center;
}

.loader-logo span{
    display:block;
    font-family:"Playfair Display",serif;
    font-size:56px;
    letter-spacing:8px;
    color:#171717;
}

.loader-logo small{
    display:block;
    margin-top:8px;
    letter-spacing:7px;
    font-size:15px;
    color:#8b6d2f;
}

.loader-line{
    width:180px;
    height:2px;
    margin:30px auto;
    background:#d8b56b;
    position:relative;
    overflow:hidden;
}

.loader-line::before{
    content:"";
    position:absolute;
    left:-100%;
    width:100%;
    height:100%;
    background:#171717;
    animation:loading 1.3s linear infinite;
}

.loader-content p{
    margin-top:18px;
    font-size:15px;
    color:#666;
    letter-spacing:2px;
}

@keyframes loading{
    from{
        left:-100%;
    }
    to{
        left:100%;
    }
}

.page-loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ===========================
   TOAST NOTIFICATIONS
=========================== */

.toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99999;
}

.toast {
    min-width: 280px;
    max-width: 360px;
    background: #171717;
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,.25);

    transform: translateX(120%);
    opacity: 0;

    transition: .4s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left: 5px solid #22c55e;
}

.toast.error {
    border-left: 5px solid #ef4444;
}

.toast.warning {
    border-left: 5px solid #f59e0b;
}

@media(max-width:600px){

.toast-container{
    top:20px;
    right:15px;
    left:15px;
}

.toast{
    min-width:100%;
    max-width:100%;
}

}

/* =========================
   PRODUCT SKELETON LOADER
========================= */

.skeleton-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,.06);
}

.skeleton-image{
    width:100%;
    height:320px;
    background:#ececec;
}

.skeleton-text{
    height:16px;
    margin:16px;
    border-radius:5px;
    background:#ececec;
}

.skeleton-text.short{
    width:45%;
}

.skeleton-text.medium{
    width:70%;
}

.skeleton-text.long{
    width:90%;
}

.skeleton-image,
.skeleton-text{
    background:linear-gradient(
        90deg,
        #ececec 25%,
        #f8f8f8 50%,
        #ececec 75%
    );

    background-size:200% 100%;

    animation:skeletonLoading 1.4s infinite;
}

@keyframes skeletonLoading{

    0%{
        background-position:200% 0;
    }

    100%{
        background-position:-200% 0;
    }

}

.product-sort-box {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin: 20px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.product-sort-box label {
    font-size: 15px;
    font-weight: 600;
    color: #4a2c2a;
}

.product-sort-box select {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.product-sort-box select:hover {
    border-color: #6d3b32;
}

.product-sort-box select:focus {
    outline: none;
    border-color: #6d3b32;
    box-shadow: 0 0 8px rgba(109, 59, 50, 0.2);
}

/* =========================
   PRODUCT FADE-IN ANIMATION
========================= */

.product-card {
    opacity: 0;
}

.product-card.show {
    opacity: 1;
    animation: productFadeUp 0.6s ease forwards;
}

@keyframes productFadeUp {
    from {
        opacity: 0;
        translate: 0 28px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

/* =====================================
   LUXURY CART PAGE — PART 1
   Header and Main Layout
===================================== */

.luxury-cart-page {
    min-height: 100vh;
    background: #f8f6f4;
    color: #1d1d1d;
}

.cart-header {
    min-height: 90px;
    padding: 0 6%;
    background: #ffffff;
    border-bottom: 1px solid #e8e3df;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-logo {
    color: #171717;
    text-decoration: none;
    text-align: center;
}

.cart-logo span {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    letter-spacing: 8px;
}

.cart-logo small {
    display: block;
    margin-top: 5px;
    font-size: 9px;
    letter-spacing: 5px;
}

.cart-continue-link {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    transition: 0.25s;
}

.cart-continue-link:hover {
    color: #7b1735;
}

.cart-main {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 70px 0 90px;
}

.cart-heading {
    margin-bottom: 45px;
}

.cart-heading p {
    margin: 0 0 10px;
    color: #777;
    font-size: 12px;
    letter-spacing: 4px;
}

.cart-heading h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 400;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
    gap: 45px;
    align-items: start;
}

.cart-products-section {
    min-width: 0;
}

.cart-section-title {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #dcd7d2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-section-title h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 400;
}

.cart-section-title #item-count {
    color: #777;
    font-size: 13px;
    letter-spacing: 1px;
}

.continue-shopping-button {
    display: inline-block;
    margin-top: 24px;
    color: #222;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #222;
    padding-bottom: 3px;
}

.continue-shopping-button:hover {
    color: #7b1735;
    border-color: #7b1735;
}

.order-summary {
    position: sticky;
    top: 25px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #ebe5e0;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
}

.summary-heading {
    padding-bottom: 22px;
    border-bottom: 1px solid #e8e3df;
}

.summary-heading p {
    margin: 0 0 8px;
    color: #777;
    font-size: 11px;
    letter-spacing: 4px;
}

.summary-heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 400;
}

.summary-total-row {
    padding: 24px 0;
    border-bottom: 1px solid #e8e3df;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-total-row span {
    color: #666;
    font-size: 14px;
}

.summary-total-row #total-price {
    margin: 0;
    color: #7b1735;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 400;
}

/* =====================================
   LUXURY CART PAGE — PART 2
   Product Cards
===================================== */

#cart-items {
    display: grid;
    gap: 22px;
}

.cart-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #ebe5e0;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
}

.cart-item img {
    width: 150px;
    height: 165px;
    object-fit: cover;
    border-radius: 3px;
    background: #f1eeeb;
}

.cart-item-details {
    min-width: 0;
}

.cart-item h3,
.cart-item h4 {
    margin: 0 0 10px;
    color: #222;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
}

.cart-item p {
    margin: 6px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.cart-item .cart-item-price,
.cart-item .item-price {
    color: #7b1735;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 600;
}

.cart-item strong {
    color: #333;
    font-weight: 600;
}

.cart-item-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 12px;
}

.cart-item-options span {
    color: #666;
    font-size: 13px;
}

.quantity-controls,
.cart-quantity,
.quantity-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.quantity-controls button,
.cart-quantity button,
.quantity-box button,
.decrease-btn,
.increase-btn,
.minus-btn,
.plus-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #222;
    background: #222;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: 0.25s;
}

.quantity-controls button:hover,
.cart-quantity button:hover,
.quantity-box button:hover,
.decrease-btn:hover,
.increase-btn:hover,
.minus-btn:hover,
.plus-btn:hover {
    background: #7b1735;
    border-color: #7b1735;
}

.quantity-controls span,
.cart-quantity span,
.quantity-box span,
.quantity-number {
    min-width: 24px;
    color: #222;
    text-align: center;
    font-size: 15px;
}

.cart-item-actions {
    align-self: center;
    text-align: right;
}

.remove-btn,
.remove-button,
.cart-remove-btn,
.cart-item button.remove {
    padding: 10px 16px;
    border: 1px solid #b84b4b;
    background: transparent;
    color: #a83f3f;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.25s;
}

.remove-btn:hover,
.remove-button:hover,
.cart-remove-btn:hover,
.cart-item button.remove:hover {
    background: #a83f3f;
    color: #fff;
}

.empty-cart,
#cart-items > p:only-child {
    padding: 55px 25px;
    background: #fff;
    border: 1px solid #ebe5e0;
    color: #777;
    text-align: center;
    font-size: 16px;
}

/* Handle your current generated cart-card structure */

#cart-items > div {
    box-sizing: border-box;
}

#cart-items > div > img {
    flex-shrink: 0;
}

@media (max-width: 850px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }
}

@media (max-width: 620px) {
    .cart-item {
        grid-template-columns: 95px minmax(0, 1fr);
        gap: 16px;
        padding: 16px;
    }

    .cart-item img {
        width: 95px;
        height: 120px;
    }

    .cart-item h3,
    .cart-item h4 {
        font-size: 20px;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        width: 100%;
        text-align: left;
    }

    .remove-btn,
    .remove-button,
    .cart-remove-btn,
    .cart-item button.remove {
        width: 100%;
    }
}

/* =====================================
   LUXURY CART PAGE — PART 3
   Checkout Form, Buttons and Mobile
===================================== */

.customer-form {
    padding-top: 26px;
}

.cart-form-group {
    margin-bottom: 20px;
}

.cart-form-group label {
    display: block;
    margin-bottom: 9px;
    color: #555;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cart-form-group input,
.cart-form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 15px;
    border: 1px solid #d9d3ce;
    border-radius: 0;
    background: #fff;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cart-form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.cart-form-group input::placeholder,
.cart-form-group textarea::placeholder {
    color: #aaa;
}

.cart-form-group input:focus,
.cart-form-group textarea:focus {
    border-color: #7b1735;
    box-shadow: 0 0 0 3px rgba(123, 23, 53, 0.08);
}

#checkout-btn,
#paystack-btn {
    width: 100%;
    min-height: 52px;
    margin-top: 12px;
    padding: 14px 18px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: transform 0.25s ease, background 0.25s ease;
}

#checkout-btn {
    background: #1f8f4d;
    color: #fff;
}

#checkout-btn:hover {
    background: #176f3c;
    transform: translateY(-2px);
}

#paystack-btn {
    background: #171717;
    color: #fff;
}

#paystack-btn:hover {
    background: #7b1735;
    transform: translateY(-2px);
}

#checkout-btn:disabled,
#paystack-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
    transform: none;
}

.cart-secure-note {
    margin: 18px 0 0;
    color: #888;
    text-align: center;
    font-size: 11px;
    line-height: 1.5;
}

.cart-secure-note::before {
    content: "🔒 ";
}

.cart-products-section,
.order-summary {
    animation: cartFadeUp 0.55s ease both;
}

.order-summary {
    animation-delay: 0.08s;
}

@keyframes cartFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet */

@media (max-width: 850px) {
    .cart-main {
        width: min(92%, 760px);
        padding: 50px 0 70px;
    }

    .cart-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .order-summary {
        position: static;
    }
}

/* Mobile */

@media (max-width: 620px) {
    .cart-header {
        min-height: 76px;
        padding: 0 20px;
    }

    .cart-logo span {
        font-size: 21px;
        letter-spacing: 6px;
    }

    .cart-logo small {
        font-size: 8px;
        letter-spacing: 4px;
    }

    .cart-continue-link {
        max-width: 110px;
        text-align: right;
        font-size: 11px;
        line-height: 1.4;
    }

    .cart-main {
        width: auto;
        padding: 42px 18px 65px;
    }

    .cart-heading {
        margin-bottom: 34px;
    }

    .cart-heading h1 {
        font-size: 44px;
    }

    .cart-section-title h2 {
        font-size: 25px;
    }

    .order-summary {
        padding: 24px 18px;
    }

    .summary-heading h2 {
        font-size: 26px;
    }

    .summary-total-row #total-price {
        font-size: 24px;
    }

    .cart-form-group input,
    .cart-form-group textarea {
        font-size: 16px;
    }

    #checkout-btn,
    #paystack-btn {
        min-height: 50px;
        font-size: 11px;
        letter-spacing: 1.5px;
    }
}

/* Fix hidden product details */
#product-details-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 400px !important;
    overflow: visible !important;
}

#product-details-container .product-details-content {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

#product-details-container .product-gallery,
#product-details-container .product-information,
#product-details-container .product-info {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Show related and recently viewed products */
.related-products-section,
.recently-viewed-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

#related-products,
#recently-viewed-products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 24px !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

#related-products .product-card,
#recently-viewed-products .product-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

/* =========================
   PAYMENT SUCCESS PAGE
========================= */

.payment-success-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background:
        linear-gradient(
            rgba(248, 245, 239, 0.94),
            rgba(248, 245, 239, 0.94)
        );
}

.payment-success-card {
    width: 100%;
    max-width: 620px;
    background: #ffffff;
    padding: 55px 45px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.12);
    border: 1px solid #eee7dc;
}

.success-icon {
    width: 85px;
    height: 85px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf8ef;
    color: #2f8f46;
    font-size: 42px;
    font-weight: bold;
}

.payment-success-card h1 {
    margin-bottom: 15px;
    font-family: "Playfair Display", serif;
    font-size: 42px;
    color: #181818;
}

#payment-message {
    margin-bottom: 28px;
    color: #666666;
    font-size: 17px;
    line-height: 1.7;
}

#payment-details {
    margin: 25px 0 35px;
    padding: 25px;
    background: #faf8f4;
    border: 1px solid #eee7dc;
    border-radius: 14px;
    text-align: left;
    line-height: 1.9;
    color: #333333;
}

#payment-details p {
    margin: 7px 0;
}

#payment-details strong {
    color: #111111;
}

.continue-shopping-btn {
    display: inline-block;
    width: 100%;
    padding: 17px 24px;
    background: #1d1d1d;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    border-radius: 8px;
    transition: 0.3s ease;
}

.continue-shopping-btn:hover {
    background: #7c1f38;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .payment-success-page {
        padding: 25px 15px;
    }

    .payment-success-card {
        padding: 40px 22px;
        border-radius: 16px;
    }

    .payment-success-card h1 {
        font-size: 33px;
    }

    .success-icon {
        width: 72px;
        height: 72px;
        font-size: 35px;
    }

    #payment-details {
        padding: 20px;
        font-size: 14px;
    }
}