 /* Basic Setup */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&display=swap');

* {
    box-sizing: border-box;
}

:root {
    --primary-color: #D67B5C;
    /* Terracotta Orange */
    --accent-color: #A8C2A8;
    /* Sage Green */
    --bg-color: #F4F1EA;
    /* Cream */
    --text-color: #2F4858;
    /* Deep Teal/Blue */
    --light-text: #fff;
    --section-padding: 80px 50px;
    --pastel-form-bg: #FFFFFF;
    /* White for forms */
    --pastel-input-bg: #ffffff;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-form: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    /* Reset global padding */
}

/* 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: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 60px 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.auth-box h1 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-box .form-label {
    color: #4b6584;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-box .form-control {
    padding: 14px 20px;
    border-radius: 12px;
    border: 1.5px solid #edf2f7;
    background: #fafafa;
    font-size: 1.05rem;
    transition: all 0.3s;
}

.auth-box .form-control:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(214, 123, 92, 0.1);
}

/* 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: 50px 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;
}