 /* Basic Setup */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Fraunces:opsz,wght,ital@9..144,700;9..144,900;9..144,700&display=swap');

* {
    box-sizing: border-box;
}

:root {
    --navy:    #0b1629;
    --navy2:   #111f3a;
    --navy3:   #182748;
    --terracotta: #D67B5C;
    --terracotta-lt: #E6A28A;
    --sky:     #fff8f5;
    --sky2:    #fdf2f0;
    --white:   #ffffff;
    --off:     #fcfaf9;
    --text:    #0b1629;
    --muted:   #64748b;
    --muted2:  #94a3b8;
    --border:  #e2e8f0;
    --border2: #cbd5e1;
    --gold:    #f59e0b;
    --green:   #10b981;
    --radius:  14px;
    --shadow:  0 4px 24px rgba(214,123,92,0.12);
    --shadow2: 0 16px 60px rgba(11,22,41,0.12);
    
    /* Mapping old variables to new colors for compatibility */
    --primary-color: var(--terracotta);
    --accent-color: var(--terracotta-lt);
    --bg-color: var(--off);
    --text-color: var(--text);
    --light-text: #fff;
    --section-padding: 96px 48px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Apply top padding ONLY to public pages with fixed headers */
.public-page {
    padding-top: 80px;
}

/* Consolidated Auth Styles */
.auth-container {
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center !important;
}

.auth-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 25px 15px 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.auth-box h1 {
    display: block;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

/* Modern Auth Design - Floating Labels */
.form-floating-custom {
    position: relative;
    margin-bottom: 28px; /* Increased to accommodate absolute validation message */
    height: 42px; /* Fixed height for perfect label centering */
}

.form-floating-custom .form-control {
    background-color: transparent !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    height: 52px !important;
    padding: 0 16px !important;
    font-size: 1rem !important;
    line-height: 52px !important; /* Centering the typed text */
    transition: border-color 0.2s, box-shadow 0.2s !important;
    width: 100%;
}

.form-floating-custom label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    background-color: #fff;
    padding: 0 4px;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1 !important; /* Remove font-internal spacing */
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1;
    margin: 0;
}

.form-floating-custom .form-control:focus ~ label,
.form-floating-custom .form-control:not(:placeholder-shown) ~ label {
    top: 0;
    left: 10px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.form-floating-custom .form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 1px var(--primary-color) !important;
    outline: none !important;
}

.password-toggle-modern {
    position: absolute;
    right: 16px;
    top: 45%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    z-index: 2;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.password-toggle-modern:hover {
    color: var(--primary-color);
}

.validation-msg {
    color: #dc3545;
    font-size: 0.82rem;
    position: absolute;
    top: 52px; /* Sit exactly below the 52px input */
    left: 0;
    width: 100%;
    font-weight: 500;
    display: block;
    min-height: 1.2em;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-floating-custom.is-invalid .form-control {
    border-color: #dc3545 !important;
}

.form-floating-custom.is-invalid label {
    color: #dc3545 !important;
}

/* Page Headers */
.page-header {
    background: url('https://images.pexels.com/photos/1591447/pexels-photo-1591447.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    margin-bottom: 50px;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-header h1,
.page-header p {
    position: relative;
    z-index: 2;
    margin: 5px;
}

.container-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px 20px;
}

/* About Us */
.about-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-text,
.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Us */
.contact-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--pastel-form-bg);
    /* Pastel Background */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.contact-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.form-control {
    background-color: var(--pastel-input-bg);
    border: 1px solid #e0d8c3;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(139, 69, 19, 0.2);
    outline: none;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        flex-wrap: wrap;
        background-color: var(--primary-color);
        /* Solid background for mobile */
        position: fixed;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    header.scrolled {
        background-color: var(--primary-color);
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
        order: 3;
    }

    header .logo {
        order: 1;
        font-size: 1.5em;
    }

    header .auth-buttons {
        order: 2;
        margin-left: auto;
        margin-right: 10px;
    }

    header nav {
        order: 4;
        width: 100%;
        flex-direction: column;
        gap: 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin-top: 0;
    }

    header nav.mobile-active {
        max-height: 600px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    header nav a,
    .dropdown-toggle {
        margin-left: 0;
        font-size: 1.1em;
        background: rgba(255, 255, 255, 0.1);
        padding: 12px;
        border-radius: 8px;
        width: 100%;
        text-align: left;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        min-width: 100%;
        max-width: 100%;
        margin-top: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-scroll-container {
        flex-direction: column;
        overflow-x: visible;
    }

    .dropdown-item-card {
        min-width: 100%;
    }

    header .auth-buttons {
        display: flex;
        gap: 10px;
    }

    header .auth-buttons .btn {
        margin-left: 0;
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .section-title {
        font-size: 2em;
    }

    :root {
        --section-padding: 40px 20px;
    }

    .auth-box {
        padding: 30px 20px;
        max-width: 90%;
    }

    /* Mobile Header/Hero Adjustments */
    header {
        padding: 15px 20px !important;
        height: 80px !important;
    }

    .hero {
        height: calc(100dvh - 80px) !important;
    }
}

/* Tablet Responsive Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    header {
        padding: 20px 30px;
    }

    .dropdown-menu {
        min-width: 500px;
        max-width: 600px;
    }

    .dropdown-item-card {
        min-width: 220px;
    }
}

/* Header */
header {
    background-color: #000000;
    /* Solid black initially */
    /* Solid mauve theme matching Reference site */
    position: fixed;
    width: 100%;
    height: 80px;
    /* Standardize height */
    top: 0;
    z-index: 1000;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Keep solid on scroll */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for fixed header */
}

/* Section Styling */
.section-container {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 300;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
}

.bg-light {
    background-color: #f9f9f9;
}

header .logo {
    font-size: 2em;
    font-weight: bold;
    color: var(--light-text);
    display: flex;
    align-items: center;
}

header .logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

header nav a {
    color: var(--light-text);
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
}

/* Dropdown Menu Styles */
header nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    color: var(--light-text);
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    font-size: 0.8em;
    transition: transform 0.3s;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 600px;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin-top: 15px;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

/* Horizontal Scrolling Container */
.dropdown-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

/* Hide scrollbar for cleaner look while maintaining functionality */
.dropdown-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.dropdown-scroll-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.dropdown-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.dropdown-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #A0522D;
}

/* Dropdown Item Cards */
.dropdown-item-card {
    min-width: 250px;
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    flex-shrink: 0;
}

.dropdown-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.dropdown-item-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.dropdown-item-info {
    padding: 15px;
}

.dropdown-item-info h4 {
    margin: 0 0 8px 0;
    color: var(--text-color);
    font-size: 1.1em;
    font-weight: 600;
}

.dropdown-item-info p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

.dropdown-item-info .price {
    display: block;
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1em;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    color: var(--light-text);
    font-size: 1.5em;
    cursor: pointer;
    padding: 10px;
}

/* Dropdown List Styles */
.dropdown-list {
    min-width: 200px;
    max-width: 250px;
}

.dropdown-list-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--text-color);
    font-size: 1em;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-list-item:last-child {
    border-bottom: none;
}

.dropdown-list-item:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Category Display Section */
.category-display-section {
    background-color: var(--bg-color);
    padding: 80px 20px;
    min-height: 60vh;
    animation: fadeIn 0.5s ease-in-out;
}

.category-items-grid {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px 20px 5px;
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar for IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.category-items-grid::-webkit-scrollbar {
    display: none;
}

.category-item-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    min-width: 300px;
    flex-shrink: 0;
}

.category-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.category-item-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-item-info {
    padding: 20px;
}

.category-item-info h3 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 1.3em;
    font-weight: 600;
}

.category-item-info p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
}

.item-price {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #A0522D);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1em;
}

/* Responsive for category display */
@media (max-width: 768px) {
    .category-items-grid {
        gap: 20px;
    }

    .category-item-card {
        min-width: 280px;
    }

    .dropdown-list {
        min-width: 150px;
    }
}

header .auth-buttons .btn {
    margin-left: 10px;
}

/* Hero Section */
.hero {
    background: url('https://images.pexels.com/photos/796602/pexels-photo-796602.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
    height: calc(100vh - 80px);
    /* Fill the rest of the screen after header */
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 0.2rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero p.subtitle {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
}

.btn {
    padding: 10px 20px;
    border: 1px solid var(--light-text);
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s;
    background: transparent;
    cursor: pointer;
}

.btn:hover {
    background: var(--light-text);
    color: var(--text-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #A0522D;
    color: #fff;
}

/* Featured Products */
.featured-products {
    padding: 80px 50px;
    background-color: var(--bg-color);
    text-align: center;
}

.featured-products h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    font-weight: 300;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 15px;
}

.product-info h3 {
    font-size: 1.2em;
    margin: 10px 0;
}

.product-info p {
    color: #666;
}

/* Footer */
footer {
    background-color: #2c2926;
    /* Softer dark charcoal */
    color: #fdfaf6;
    padding: 60px 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    border-top: 5px solid var(--primary-color);
}

footer .footer-column {
    flex: 1;
    min-width: 250px;
}

footer h4 {
    margin-bottom: 25px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    font-size: 1.2em;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer li {
    margin-bottom: 12px;
}

footer a {
    color: #d1cca4;
    /* Muted Gold/Beige */
    text-decoration: none;
    transition: all 0.3s;
}

footer a:hover {
    color: #fff;
    padding-left: 5px;
    /* Subtle movement */
}

/* Authentication Forms */
/* Authentication Forms */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Full viewport height */
    padding-top: 60px;
    padding-top: 60px;
    background-color: var(--bg-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-page,
.signup-page {
    background-image: url('https://images.pexels.com/photos/572061/pexels-photo-572061.jpeg');
}

.auth-box {
    background: #ffffff;
    padding: 10px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    width: 90%;
    /* Responsive width */
    max-width: 450px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    margin: 20px;
    /* Outer margin for mobile safety */
}

/* Decorative top border for auth box */
.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.auth-box h2 {
    margin-bottom: 30px;
    color: var(--text-color);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #777;
    font-size: 0.9em;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    /* Softer inputs */
    background-color: #fafafa;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(197, 143, 104, 0.1);
    /* Pastel glow */
    outline: none;
}

.btn {
    border-radius: 50px;
    /* Pill shaped buttons */
    padding: 12px 25px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(197, 143, 104, 0.3);
}

.btn-primary:hover {
    background-color: #b07d58;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 143, 104, 0.4);
}

.text-danger {
    color: #e57373;
    /* Pastel Red */
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
}

/* Link Styling in Auth */
.auth-box a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-box a:hover {
    color: var(--accent-color);
}

/* Item Details Section */
.item-details-section {
    background-color: #fff;
    padding: 80px 20px;
    min-height: 60vh;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-details-content {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: flex-start;
}

.item-details-image {
    flex: 1;
    min-width: 300px;
}

.item-details-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.item-details-image img:hover {
    transform: scale(1.02);
}

.item-details-info {
    flex: 1;
    min-width: 300px;
}

.item-details-info h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 600;
}

.item-details-info>p {
    font-size: 1.2em;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.item-details-info h3 {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.item-details-info ul {
    list-style: none;
    padding: 0;
}

.item-details-info ul li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
    font-size: 1.05em;
    line-height: 1.6;
}

/* check icon */
.item-details-info ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
}

.detail-price {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), #A0522D);
    border-radius: 50px;
    color: white;
    width: fit-content;
}

.detail-price h3 {
    margin: 0;
    color: white;
    font-size: 2em;
}

.item-details-info .btn {
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 1.1em;
}

/* Responsive for item details */
@media (max-width: 768px) {
    .item-details-content {
        gap: 30px;
    }

    .item-details-info h2 {
        font-size: 2em;
    }

    .item-details-info>p {
        font-size: 1em;
    }

    .detail-price h3 {
        font-size: 1.5em;
    }
}

/* ==================== */
/* ENHANCED RESPONSIVE STYLES */
/* ==================== */

/* Phone View (max-width: 576px) */
@media (max-width: 576px) {

    /* Header & Navigation */
    header {
        padding: 12px 15px;
    }

    header .logo {
        font-size: 1.3em;
    }

    header .auth-buttons {
        gap: 5px;
    }

    header .auth-buttons .btn {
        padding: 6px 12px;
        font-size: 0.8em;
    }

    /* Hero Section */
    .hero {
        height: 70vh;
        /* Better for mobile display */
        min-height: 450px;
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 15px;
    }

    .hero p.subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero .btn {
        padding: 12px 25px;
        font-size: 1rem;
        width: 80%;
    }

    /* Sections */
    .section-container {
        padding: 50px 15px;
    }

    .section-title {
        font-size: 1.6em;
        margin-bottom: 8px;
    }

    .section-subtitle {
        font-size: 0.9em;
        margin-bottom: 30px;
    }

    /* About Section */
    .about-section {
        gap: 25px;
    }

    .about-text,
    .about-image {
        min-width: 100%;
    }

    .about-text h3 {
        font-size: 1.4em !important;
    }

    .about-text p {
        font-size: 0.95em !important;
    }

    /* Contact Section */
    .contact-section {
        gap: 25px;
    }

    .contact-form {
        padding: 25px;
    }

    .contact-form h3,
    .contact-info h3 {
        font-size: 1.3em;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item img {
        height: 180px;
        border-radius: 12px;
    }

    /* Footer */
    footer {
        padding: 40px 20px;
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    footer .footer-column {
        min-width: 100%;
    }

    footer h4 {
        margin-bottom: 15px;
    }

    /* Auth Pages */
    .auth-container {
        padding: 50px 15px !important;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .auth-box {
        padding: 40px 25px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 20px !important;
        background: #fff !important;
        /* Solid white for mobile readability */
    }

    .auth-box h2 {
        font-size: 1.6em;
    }

    /* Category Items */
    .category-display-section {
        padding: 50px 15px;
    }

    .category-item-card {
        min-width: 250px;
    }

    /* Item Details */
    .item-details-section {
        padding: 50px 15px;
    }

    .item-details-image,
    .item-details-info {
        min-width: 100%;
    }
}

/* Tablet View (577px - 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    header .logo {
        font-size: 1.5em;
    }

    .hero h1 {
        font-size: 2.8em;
    }

    .hero p.subtitle {
        font-size: 1.2em;
    }

    .section-title {
        font-size: 2em;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .gallery-item img {
        height: 200px;
    }

    /* Footer */
    footer {
        padding: 50px 30px;
    }

    footer .footer-column {
        min-width: 45%;
        text-align: left;
    }
}

/* Large Tablet / Small Desktop (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    header {
        padding: 20px 30px;
    }

    .hero h1 {
        font-size: 3.5em;
    }

    .section-container {
        padding: 70px 30px;
    }

    footer {
        padding: 50px 40px;
    }
}

/* Desktop (1025px+) */
@media (min-width: 1025px) {
    .container-content {
        max-width: 1200px;
    }

    .hero h1 {
        font-size: 4em;
    }

    .section-container {
        padding: 80px 50px;
    }
}

/* Mobile Menu Enhanced Styles */
@media (max-width: 768px) {

    /* Hamburger Menu Icon */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.15);
        transition: background 0.3s;
    }

    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .mobile-menu-toggle i {
        font-size: 1.3em;
    }

    /* Navigation Menu */
    header nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 0;
        background: rgba(0, 0, 0, 0.9);
        border-radius: 12px;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s ease, margin-top 0.3s ease;
    }

    header nav.mobile-active {
        display: flex;
        max-height: 500px;
        margin-top: 15px;
    }

    header nav a,
    header nav .dropdown-toggle {
        display: block;
        padding: 15px 20px;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        background: transparent;
        font-size: 1em;
        text-align: left;
        width: 100%;
    }

    header nav a:last-child {
        border-bottom: none;
    }

    header nav a:hover,
    header nav .dropdown-toggle:hover {
        background: var(--primary-color);
    }

    /* Dropdown in mobile */
    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.95);
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-list-item {
        padding: 12px 30px;
    }
}

/* Fix for auth buttons on very small screens */
@media (max-width: 400px) {
    header .auth-buttons {
        flex-direction: column;
        gap: 5px;
        align-items: flex-end;
    }

    header .auth-buttons .btn {
        font-size: 0.75em;
        padding: 5px 10px;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .hero p.subtitle {
        font-size: 1em;
    }
}

/* Smooth transitions for all responsive changes */
* {
    transition: padding 0.3s ease, margin 0.3s ease;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Fix map container responsiveness */
.map-container {
    width: 100%;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    min-height: 250px;
}

/* Sprout - Admin & Profile Styles */
:root {
    --primary-color: #D67B5C;
    /* Terracotta Orange */
    --accent-color: #A8C2A8;
    /* Sage Green */
    --bg-color: #F4F1EA;
    /* Cream */
    --text-color: #2F4858;
    --pastel-form-bg: #FFFFFF;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --sidebar-width: 260px;
}

.admin-sidebar {
    width: var(--sidebar-width);
    background-color: #ffffff;
    border-right: 1px solid rgba(214, 123, 92, 0.1);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100%;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.02);
}

.admin-sidebar .logo {
    font-size: 1.6em;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.admin-nav-item {
    padding: 14px 18px;
    border-radius: 12px;
    color: #5c6c75;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95em;
}

.admin-nav-item:hover {
    background-color: #fcf9f4;
    color: var(--primary-color);
    transform: translateX(5px);
}

.admin-nav-item.active {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(214, 123, 92, 0.25);
}

.admin-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1em;
}

.admin-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 40px 50px;
    overflow-y: auto;
    background-color: var(--bg-color);
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    background: white;
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.admin-header h2 {
    margin: 0;
    font-weight: 700;
    color: var(--text-color);
}

.admin-profile-pic {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), #e59a82);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(214, 123, 92, 0.3);
}

/* Mobile Menu Toggle Button */
.mobile-menu-btn {
    display: none;
    width: 45px;
    height: 45px;
    border-radius: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(214, 123, 92, 0.3);
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    background: #c96a4d;
    transform: scale(1.05);
}

/* Sidebar Close Button (Mobile) */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
    cursor: pointer;
    font-size: 1.2em;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1002;
    /* Ensure above everything else in sidebar */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.sidebar-close-btn:active {
    transform: scale(0.95);
}

.sidebar-close-btn:hover {
    background: #fee2e2;
    transform: scale(1.1);
}

/* Overlay Backdrop */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(214, 123, 92, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6em;
}

/* Pastel backgrounds for icons */
.bg-pastel-orange {
    background-color: #fdf2ef;
    color: #D67B5C;
}

.bg-pastel-green {
    background-color: #f1f6f1;
    color: #88a888;
}

.bg-pastel-blue {
    background-color: #edf2f7;
    color: #648fb1;
}

.table-container {
    background: white;
    padding: 35px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    margin-top: 30px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    min-width: 500px;
}

th {
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    text-align: left;
}

td {
    background-color: #ffffff;
    padding: 20px;
    border-top: 1px solid #f8fafc;
    border-bottom: 1px solid #f8fafc;
}

td:first-child {
    border-left: 1px solid #f8fafc;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

td:last-child {
    border-right: 1px solid #f8fafc;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
}

.status-active {
    background-color: #ecfdf5;
    color: #059669;
}

.status-inactive {
    background-color: #fef2f2;
    color: #dc2626;
}

/* ==================== */
/* TOGGLE SWITCHES */
/* ==================== */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    /* Default Gray */
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(22px);
}

/* ==================== */
/* MOBILE RESPONSIVE */
/* ==================== */

/* Tablet View */
@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
    }

    .admin-content {
        margin-left: 0;
        padding: 30px 25px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .sidebar-close-btn {
        display: flex;
    }

    .admin-header {
        padding: 15px 20px;
    }

    .admin-header h2 {
        font-size: 1.2em;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3em;
    }

    .table-container {
        padding: 20px;
    }
}

/* Phone View */
@media (max-width: 576px) {
    .admin-content {
        padding: 20px 15px;
    }

    .admin-header {
        padding: 12px 15px;
        border-radius: 15px;
        margin-bottom: 25px;
    }

    .admin-header h2 {
        font-size: 1.1em;
    }

    .mobile-menu-btn,
    .admin-profile-pic {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .stat-card {
        padding: 18px;
        border-radius: 16px;
    }

    .stat-card h3 {
        font-size: 1.5em !important;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2em;
        border-radius: 12px;
    }

    .table-container {
        padding: 15px;
        border-radius: 16px;
        margin-top: 20px;
    }

    .table-container h3 {
        font-size: 1.1em;
    }

    th,
    td {
        padding: 12px 10px;
        font-size: 0.85em;
    }

    .admin-sidebar {
        width: 280px;
    }

    .admin-sidebar .logo {
        font-size: 1.4em;
        margin-bottom: 30px;
    }

    .admin-nav-item {
        padding: 12px 15px;
        font-size: 0.9em;
    }
}

/* ==================== */
/* PROFILE PAGE STYLES */
/* ==================== */
.profile-card {
    border: 0;
    border-radius: 35px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.profile-header {
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0.9;
    position: relative;
}

.profile-avatar-container {
    position: absolute;
    bottom: -40px;
    left: 40px;
}

.profile-avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 35px;
    background: white;
    padding: 6px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.profile-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    border: 3px solid #fff;
}

.form-control-simple {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1.5px solid #edf2f7;
    background: #fafafa;
    font-size: 1.05rem;
    color: #334155;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control-simple:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(214, 123, 92, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.btn-primary-simple {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 18px 45px;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 30px rgba(214, 123, 92, 0.3);
    transition: all 0.3s ease;
}

.btn-primary-simple:hover {
    background: #C0684C;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(214, 123, 92, 0.4);
}

@media (max-width: 768px) {
    .profile-card .card-body {
        padding: 30px !important;
        padding-top: 100px !important;
    }

    .profile-avatar-container {
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: -70px !important;
    }

    .profile-info-header {
        text-align: center;
    }

    .profile-badges {
        justify-content: center;
    }

    .profile-submit-container {
        text-align: center !important;
    }
}

/* Progress Bar Steps */
.progress-wrapper {
    position: relative;
    width: 100%;
}

.progress-steps {
    display: flex;
    align-items: flex-start;
    /* Align to top so circles align regardless of label height */
    justify-content: space-between;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    max-width: 800px;
}

.progress-step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    text-decoration: none !important;
    cursor: default;
}

.progress-step.clickable {
    cursor: pointer;
}


.progress-connector {
    flex: 2;
    height: 3px;
    background: #eee;
    margin: 0 -20px;
    margin-top: 19px;
    /* Center with 38px circle (38/2 = 19) */
    z-index: 1;
}

.progress-step.active .step-num {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(214, 123, 92, 0.4);
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 800;
}

.step-num {
    width: 38px;
    /* Slightly larger */
    height: 38px;
    border-radius: 50%;
    background: white;
    border: 2px solid #cbd5e1;
    /* Darker border */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 800;
    color: #475569;
    /* Darker text */
}

.step-label {
    font-size: 0.8rem;
    /* Slightly larger */
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    /* Darker label */
    letter-spacing: 0.5px;
    white-space: nowrap;
    /* Prevent wrapping */
}

/* Progress Indicator for Step Counts */
.step-indicator-badge {
    background: #fdf2ef;
    color: var(--primary-color);
    padding: 6px 15px;
    border-radius: 10px;
    font-weight: 600;
}

/* Builder Action Buttons Utility */
.builder-action-btn {
    transition: all 0.2s ease-in-out;
    border-radius: 20px !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.builder-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    filter: brightness(1.05);
}

.builder-action-btn:active {
    transform: translateY(0);
}

/* Global Builder Responsiveness */
@media (max-width: 768px) {

    body,
    html {
        overflow-x: hidden !important;
        width: 100%;
        position: relative;
    }

    * {
        box-sizing: border-box !important;
    }

    .progress-steps {
        max-width: 100%;
        padding: 0 5px;
        margin-bottom: 20px;
    }

    .step-label {
        display: none !important;
    }

    .step-num {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        margin: 0;
    }

    .progress-connector {
        height: 1px;
        margin: 0 5px;
    }

    /* Fix Horizontal scroll in builder containers */
    .user-content {
        padding: 40px 50px !important;
        overflow-x: hidden !important;
    }

    .table-container {
        padding: 35px !important;
        margin-top: 30px !important;
        overflow: visible !important;
        /* No horizontal scroll as per user request */
        border-radius: 24px !important;
        background: white !important;
        box-shadow: var(--shadow-soft) !important;
    }

    /* Style for horizontal scrollbar */
    .table-container::-webkit-scrollbar {
        height: 6px;
    }

    .table-container::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 10px;
    }

    .table-container::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }

    .table-responsive {
        overflow-x: auto !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #itemsTable {
        min-width: 900px;
        /* Force horizontal layout on Tablet */
    }
}

/* Responsive "App" Layout - Card Transformation (< 768px Only) */
@media (max-width: 767px) {
    .user-content {
        padding: 25px 15px !important;
    }

    .table-container {
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow-x: auto !important;
        /* Enable scroll for tables like gallery */
        -webkit-overflow-scrolling: touch;
    }

    #itemsTable {
        display: block !important;
        border: none !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    #itemsTable thead {
        display: none;
    }

    #itemsTable tbody {
        display: block;
        width: 100%;
    }

    #itemsTable tr {
        display: block;
        background: #fff;
        border-radius: 20px;
        border: 1px solid #e2e8f0;
        margin-bottom: 25px;
        padding: 10px 0 !important;
        overflow: hidden;
        width: 100%;
        box-shadow: var(--shadow-soft);
    }

    #itemsTable td {
        display: block;
        width: 100% !important;
        padding: 12px 20px !important;
        border: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
        text-align: left !important;
    }

    #itemsTable td:last-child {
        border-bottom: none !important;
    }

    /* Left-align checkboxes and toggles in card view */
    #itemsTable .form-check {
        justify-content: flex-start !important;
        padding-left: 0;
    }

    #itemsTable .form-switch {
        padding-left: 0;
        margin-left: 0;
        text-align: left !important;
    }

    /* Reset card-specific pseudo-elements for itemsTable */
    #itemsTable td::before {
        content: attr(data-label);
        display: block;
        background: #f1f5f9;
        margin: -12px -20px 10px -20px;
        padding: 8px 20px;
        color: #475569;
        font-size: 0.6rem;
        font-weight: 900;
        text-transform: uppercase;
        border-bottom: 1px solid #e2e8f0;
        letter-spacing: 0.8px;
    }

    #itemsTable .form-control {
        width: 100% !important;
        border: 1px solid #cbd5e1 !important;
        background: #fff !important;
        padding: 10px 12px !important;
        font-size: 0.95rem !important;
        border-radius: 10px !important;
    }

    #itemsTable .form-check-input {
        width: 1.15em !important;
        height: 1.15em !important;
        margin: 0 !important;
    }

    #itemsTable .form-switch .form-check-input {
        width: 2.2em !important;
    }

    /* Navigation Buttons */
    .d-flex.justify-content-between.align-items-center.mt-5 {
        flex-direction: column-reverse !important;
        gap: 10px !important;
        padding: 10px 0;
    }

    .d-flex.justify-content-between.align-items-center.mt-5 a,
    .d-flex.justify-content-between.align-items-center.mt-5 button {
        width: 100% !important;
        padding: 12px !important;
        margin: 0 !important;
    }
}

/* Tablet & PC Optimization: Professional Horizontal Tables */
@media (min-width: 768px) {
    .table-container {
        overflow-x: auto !important;
        padding: 30px !important;
    }

    #itemsTable,
    #galleryTable {
        min-width: 1000px !important;
    }
}

/* Step 4: Quill Editor Responsiveness - Smart Expandable Toolbar */
.ql-toolbar.ql-snow {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px;
    padding: 12px 15px !important;
    background: #f8fafc !important;
    border-radius: 12px 12px 0 0 !important;
    position: relative;
    border: 1px solid #e2e8f0 !important;
}

/* Compact mode: Hide extra formats on mobile/tablet */
@media (max-width: 991px) {
    .ql-toolbar.ql-snow.ql-compact .ql-formats:nth-child(n+4) {
        display: none !important;
    }
}

/* Custom "More" Button style - Highly visible */
.ql-more-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    padding: 6px 14px;
    margin-left: auto;
    border-radius: 50px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ql-more-btn:hover {
    background: var(--primary-color);
    color: white !important;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(214, 123, 92, 0.2);
}

.ql-toolbar .ql-formats {
    margin-right: 12px !important;
}

.ql-container.ql-snow {
    min-height: 200px;
    border-radius: 0 0 12px 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-top: none !important;
}

/* Gallery Button Styles (Fixing invisibility) */
.btn-primary-modern {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    /* Pill shape as per image */
    font-weight: 700 !important;
    padding: 12px 30px !important;
    transition: all 0.3s !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(214, 123, 92, 0.3) !important;
}

.btn-primary-modern:hover {
    background: #A0522D !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 123, 92, 0.4) !important;
    color: white !important;
}

.btn-primary-modern i {
    font-size: 0.9rem;
}
/* ----------------------------
   ENHANCED LANDING PAGE STYLES
   ---------------------------- */

/* -- SHARED SECTION -- */
section { padding: var(--section-padding); }
.container-enhanced { max-width: 1100px; margin: 0 auto; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--off);
  color: var(--terracotta);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.section-title-enhanced {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--navy);
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 550px;
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 30px;
}

/* -- HERO ENHANCEMENTS -- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 5px 14px 5px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  margin-bottom: 24px;
}
.hero-badge .chip {
  background: var(--terracotta-lt);
  color: white;
  border-radius: 100px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
}
.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--white);
  margin-bottom: 20px;
}
.hero h1 .accent {
  color: var(--terracotta-lt);
  font-style: italic;
}
.hero-tagline {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 440px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; justify-content: center; }
.btn-hero-primary {
  background: var(--terracotta);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(37,99,235,0.3);
  transition: all 0.2s;
  border: none;
}
.btn-hero-primary:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,99,235,0.4); color: white; }
.btn-hero-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.2); border-color: white; color: white; }

/* hero visual */
.hero-visual-enhanced { position: relative; margin-top: 50px; }
.hero-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(11,22,41,0.14), 0 0 0 1px rgba(37,99,235,0.07);
  overflow: hidden;
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}
.hc-topbar { background: var(--navy); padding: 12px 18px; display: flex; align-items: center; gap: 10px; }
.hc-dots { display: flex; gap: 5px; }
.hc-dot { width: 9px; height: 9px; border-radius: 50%; }
.hc-dot:nth-child(1) { background: #ff5f57; }
.hc-dot:nth-child(2) { background: #febc2e; }
.hc-dot:nth-child(3) { background: #28c840; }
.hc-url { flex: 1; background: rgba(255,255,255,0.08); border-radius: 5px; padding: 4px 10px; font-family: monospace; font-size: 0.68rem; color: rgba(255,255,255,0.5); text-align: center; }
.hc-body { display: grid; grid-template-columns: 140px 1fr; min-height: 280px; }
.hc-sidebar { background: var(--off); border-right: 1px solid var(--border); padding: 16px 12px; }
.hc-logo-chip { background: var(--terracotta); color: white; border-radius: 8px; padding: 8px 10px; font-size: 0.68rem; font-weight: 700; text-align: center; margin-bottom: 14px; font-family: 'Fraunces', serif; }
.hc-nav-item { padding: 7px 10px; border-radius: 6px; font-size: 0.62rem; color: var(--muted); margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.hc-nav-item.on { background: rgba(214,123,92,0.1); color: var(--terracotta); font-weight: 600; }
.hc-main { padding: 16px; }
.hc-hero-strip { background: linear-gradient(135deg, var(--off), #ede9fe); border-radius: 10px; padding: 14px; margin-bottom: 12px; text-align: center; }
.hc-strip-title { font-family: 'Fraunces', serif; font-size: 0.75rem; font-weight: 900; color: var(--navy); margin-bottom: 4px; }
.hc-strip-btn { display: inline-block; background: var(--terracotta); color: white; font-size: 0.55rem; font-weight: 700; padding: 4px 12px; border-radius: 5px; }

/* floating badges */
.hero-card-wrap { position: relative; }
.float-badge {
  position: absolute;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(11,22,41,0.14);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  z-index: 10;
  animation: float 3s ease-in-out infinite;
}
.float-badge.badge1 { bottom: -18px; left: -24px; }
.float-badge.badge2 { top: 40px; right: -24px; animation-delay: 1.5s; }
.float-badge .sub { font-size: 0.65rem; font-weight: 400; color: var(--muted); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* -- STATS STRIP -- */
.stats-strip { background: var(--navy); padding: 50px 20px; position: relative; z-index: 5; margin-top: -2px; }
.stats-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat-item-enhanced { padding: 0 20px; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-item-enhanced:last-child { border-right: none; }
.stat-num { font-family: 'Fraunces', serif; font-size: 2.4rem; font-weight: 900; color: var(--white); line-height: 1; margin-bottom: 4px; }
.stat-num span { color: var(--terracotta-lt); }
.stat-lbl { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* -- FEATURES -- */
.features-section { background: var(--off); }
.features-header { text-align: center; margin-bottom: 60px; display: flex; flex-direction: column; align-items: center; }
.features-grid-enhanced { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; }
.feat-card-enhanced {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  text-align: left;
}
.feat-card-enhanced:hover { transform: translateY(-4px); box-shadow: var(--shadow2); border-color: var(--terracotta-lt); }
.feat-card-enhanced.featured { border-color: var(--terracotta); background: linear-gradient(145deg, #eff6ff, #ffffff); }
.feat-icon-enhanced {
  width: 48px; height: 48px;
  background: var(--off);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.feat-card-enhanced.featured .feat-icon-enhanced { background: var(--terracotta); color: white; }
.feat-title-enhanced { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feat-desc-enhanced { font-size: 0.875rem; color: var(--muted); line-height: 1.7; font-weight: 300; }

/* -- HOW IT WORKS -- */
.how-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: 1100px; margin: 0 auto; }
.step-row { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border); text-align: left; }
.step-row:last-child { border-bottom: none; }
.step-num-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(214,123,92,0.1);
  border: 2px solid #bfdbfe;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 900; color: var(--terracotta); flex-shrink: 0;
}
.step-title { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.step-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

/* journey visual */
.how-visual {
  background: linear-gradient(145deg, var(--navy2), var(--navy3));
  border-radius: 24px; padding: 36px 32px; box-shadow: var(--shadow2); text-align: left;
}
.how-visual-title { font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 20px; }
.how-visual-title span { color: var(--terracotta-lt); }
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 16px; top: 10px; bottom: 10px; width: 1px; background: rgba(255,255,255,0.1); }
.tl-item { display: flex; gap: 16px; padding: 14px 0; position: relative; }
.tl-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(37,99,235,0.2); border: 1.5px solid rgba(37,99,235,0.4);
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: var(--terracotta-lt); z-index: 1;
}
.tl-dot.done { background: var(--terracotta); border-color: var(--terracotta); color: white; }
.tl-label { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.85); margin-bottom: 2px; }
.tl-sub { font-size: 0.68rem; color: rgba(255,255,255,0.4); }

/* -- ABOUT ENHANCEMENTS -- */
.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; text-align: left; }
.pillar { background: var(--off); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.pillar-icon { font-size: 1.2rem; margin-bottom: 6px; }
.pillar-title { font-size: 0.82rem; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.pillar-desc { font-size: 0.75rem; color: var(--muted); font-weight: 300; }

/* -- GALLERY ENHANCEMENTS -- */
.gallery-overlay-enhanced {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,22,41,0.7) 100%);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: flex-end; padding: 16px;
}
.gallery-item:hover .gallery-overlay-enhanced { opacity: 1; }
.gallery-overlay-enhanced span { color: white; font-size: 0.8rem; font-weight: 600; }

/* -- CONTACT ENHANCEMENTS -- */
.contact-detail-enhanced { display: flex; gap: 14px; margin-bottom: 24px; text-align: left; }
.contact-icon-enhanced {
  width: 42px; height: 42px; background: var(--off); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.contact-detail-label { font-size: 0.75rem; font-weight: 700; color: var(--muted2); text-transform: uppercase; margin-bottom: 3px; }
.contact-detail-val { font-size: 0.9rem; color: var(--navy); font-weight: 500; }

/* -- ANIMATIONS -- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@media (max-width: 991px) {
  .hero-inner, .how-layout, .features-grid-enhanced, .about-pillars { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stat-item-enhanced { border: none; }
  .section-padding { padding: 60px 20px; }
}
