/* Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #1a1a1a;
    --accent-color: #d4a373;
    --bg-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f9f9f9;
    --border-color: #eeeeee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.brand-logo a {
    background: linear-gradient(to right, var(--primary-color) 20%, #d4a373 40%, #d4a373 60%, var(--primary-color) 80%);
    background-size: 200% auto;
    color: #000;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
    text-decoration: none;
}

/* Footer logo override for white text base */
/* Footer logo override to remove animation */
footer .brand-logo a,
.footer-col .brand-logo a {
    background: none;
    -webkit-text-fill-color: initial;
    color: #fff;
    animation: none;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover,
nav a.active {
    color: var(--accent-color);
}

.mobile-menu-item {
    display: none;
}

.header-icons {
    display: flex;
    gap: 20px;
    font-size: 1.1rem;
}

.header-icons i:hover {
    color: var(--accent-color);
    cursor: pointer;
}

.mobile-toggle {
    display: none;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 50px;
    background-color: var(--light-gray);
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.hero-content i {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--accent-color);
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 20px 20px 0 rgba(0, 0, 0, 0.05);
}

/* Buttons */
/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary-color);
    color: #fff;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 1px solid var(--primary-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    z-index: -2;
}

.btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #1a1a1a;
    /* Darken on hover */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.btn:hover::before {
    width: 100%;
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin: 80px 0 50px;
    color: var(--primary-color);
}

/* Categories / Collections Grid */
/* Categories / Collections Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 50px 80px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 50px 80px;
}

.cat-card,
.card {
    position: relative;
    overflow: hidden;
    background: #fff;
    transition: all 0.4s ease;
    border-radius: 8px;
    text-align: center;
    /* Center content in card */
}

.cat-card:hover,
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.cat-card img,
.card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 20px;
    transition: transform 0.6s ease;
}

@media (max-width: 768px) {
    .cat-card img {
        height: 150px;
        /* Smaller height for mobile 3-column view */
        margin-bottom: 10px;
    }

    .cat-card h3 {
        font-size: 1rem;
    }

    .cat-card p {
        font-size: 0.7rem;
    }
}

.cat-card:hover img,
.card:hover img {
    transform: scale(1.05);
}

.cat-card h3,
.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 5px;
    text-align: center;
}

.cat-card p,
.card p {
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.card button {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.card button:hover {
    background: transparent;
    color: var(--primary-color);
}

/* Promo Banner */
.promo-banner {
    display: flex;
    background-color: #f4f4f4;
    margin: 0 50px 80px;
    align-items: center;
}

.promo-image {
    flex: 1;
}

.promo-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.promo-content {
    flex: 1;
    padding: 50px;
    text-align: center;
}

.promo-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Testimonials */
.testimonials-section {
    padding: 80px 50px;
    background: #fff;
    text-align: center;
}

.testimonial-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.testi-card {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background: #fcfcfc;
    border: 1px solid #eee;
}

.testi-text {
    font-style: italic;
    color: #555;
    margin: 20px 0;
    line-height: 1.8;
}

.testi-author {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Footer */
/* Footer */
footer {
    background: #0f1012;
    /* Deep Matte Black */
    color: #e0e0e0;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Subtle Top Border Gradient */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.footer-container {
    display: flex;
    padding: 80px 50px 40px;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: #fff;
    letter-spacing: 0.5px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #a0a0a0;
    font-size: 0.95rem;
    font-weight: 300;
    /* Elegant thin font */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    /* Glass effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 163, 115, 0.3);
}

.footer-bottom {
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}


/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fdfdfd;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.1);
    background: #fff;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #555;
}

/* Styled Tables */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.95rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    border-radius: 8px;
    /* Rounded corners for the table wrapper if overflow:hidden used */
    overflow: hidden;
}

.styled-table thead tr {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 15px 20px;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid var(--primary-color);
}

.styled-table tbody tr:hover {
    background-color: #f1f1f1;
}

.action-link {
    color: #e74c3c;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.action-link:hover {
    color: #c0392b;
}

/* Admin Dashboard Specifics */
.admin-grid-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.admin-grid-full {
    grid-column: span 2;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Auth Container (Global override for consistency) */
.auth-wrapper {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light-gray);
    padding: 20px;
}

.auth-box {
    background: #fff;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.auth-box h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {

    /* Header & Nav */
    header {
        flex-wrap: wrap;
        /* Allow wrapping for dropdown */
        padding: 15px 20px;
        position: relative;
        justify-content: space-between;
    }

    .brand-logo {
        font-size: 1.5rem;
    }

    nav {
        width: 100%;
        display: none;
        /* Hidden by default */
        order: 3;
        margin-top: 15px;
        border-top: 1px solid #eee;
        padding-top: 15px;
    }

    nav.active {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .mobile-menu-item {
        display: block;
    }

    .header-icons {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .header-icons a {
        display: none;
    }

    .mobile-toggle {
        display: block;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
        margin-left: 15px;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Layout & Grids */
    .admin-grid-form {
        grid-template-columns: 1fr;
    }

    .admin-grid-full {
        grid-column: span 1;
    }

    .hero {
        flex-direction: column-reverse;
        padding: 40px 20px;
        text-align: center;
        min-height: auto;
    }

    .hero-content {
        padding-right: 0;
        margin-top: 40px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-image img {
        height: 400px;
    }

    .promo-banner {
        flex-direction: column;
        margin: 0 20px 50px;
    }

    .promo-content {
        padding: 30px 20px;
    }

    .categories-grid {
        /* Force 3 columns on mobile as requested, but reduce gap */
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0 10px 50px;
    }

    .product-grid,
    .footer-container {
        padding: 0 20px 50px;
    }

    /* Mobile Table styles (Card View) */
    .styled-table thead {
        display: none;
    }

    .styled-table,
    .styled-table tbody,
    .styled-table tr,
    .styled-table td {
        display: block;
        width: 100%;
    }

    .styled-table tr {
        margin-bottom: 20px;
        border: 1px solid #eee;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        overflow: hidden;
    }

    .styled-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #f9f9f9;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
    }

    /* For Cart Images in mobile view */
    .styled-table td img {
        width: 60px !important;
        height: 60px !important;
    }

    .styled-table td:last-child {
        border-bottom: none;
        justify-content: center;
        background: #fdfdfd;
    }

    .styled-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--primary-color);
        text-align: left;
    }
}
}

/* Footer Responsiveness */
/* Footer Responsiveness */
/* Footer Responsiveness */
@media (max-width: 768px) {
    .footer-container {
        display: flex;
        flex-wrap: wrap;
        padding: 40px 10px;
        gap: 0;
        justify-content: space-between;
    }

    /* Brand Section: Full Width */
    .footer-container>.footer-col:first-child {
        width: 100%;
        flex: 0 0 100%;
        text-align: center;
        margin-bottom: 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 20px;
    }

    /* Policies and Contact: 50% Width Each */
    .footer-col {
        width: 50%;
        flex: 0 0 50%;
        padding: 0 10px;
        box-sizing: border-box;
        /* Ensure padding doesn't break width */
    }

    /* Headers aligned left */
    .footer-col h3 {
        font-size: 1.0rem;
        margin-bottom: 15px;
    }

    .footer-col h3::after {
        margin: 0;
        /* Left align underline */
    }

    /* Links word-wrap to prevent overflow */
    .footer-links a {
        font-size: 0.8rem;
        white-space: normal;
        word-break: break-all;
        /* Force break long emails */
    }

    /* Branding specific adjustments */
    .footer-container>.footer-col:first-child p {
        margin: 0 auto 20px auto;
    }

    .social-icons {
        justify-content: center;
    }
}