:root {
    --primary: #e09693;
    /* New Redefined Peach/Rose */
    --primary-light: #fff5f5;
    --primary-dark: #c17b78;
    --secondary: #4a4a4a;
    --background: #fdfbf7;
    --surface: #ffffff;
    --surface-hover: #fff5f5;
    --text-main: #2d2d2d;
    --text-muted: #8a8a8a;
    --border: #f2f2f2;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow: 0 10px 40px rgba(214, 139, 139, 0.1);
    --shadow-hover: 0 20px 50px rgba(214, 139, 139, 0.2);
}

/* Page Entrance Transition */
body {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* Luxury Glassmorphism Utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Custom Interactive Cursor (Desktop) */
@media (min-width: 992px) {
    .cursor-dot {
        width: 8px;
        height: 8px;
        background: var(--primary);
        position: fixed;
        border-radius: 50%;
        pointer-events: none;
        z-index: 10001;
        transition: transform 0.1s;
    }

    .cursor-outline {
        width: 40px;
        height: 40px;
        border: 1.5px solid var(--primary);
        position: fixed;
        border-radius: 50%;
        pointer-events: none;
        z-index: 10000;
        transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
        transform: translate(-50%, -50%);
    }

    .cursor-outline.hover {
        width: 60px;
        height: 60px;
        background: rgba(224, 150, 147, 0.1);
        border-width: 1px;
    }
}


/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navbar */
header {
    background: #ffffff;
    /* White background to match logo JPEG */
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    max-width: 450px;
    /* Dramatically bigger */
    height: auto;
}

nav a {
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    margin-top: 20px;
    padding: 100px 40px;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, #fff1e5 0%, #ffe3d1 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.4);
    filter: blur(80px);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: var(--surface);
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    animation: float 4s ease-in-out infinite;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 16px 36px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(224, 150, 147, 0.4);
}

/* Section Titles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 80px 0 40px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 600;
}

.view-all {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}

.view-all:hover {
    gap: 12px;
}

/* Categories Matrix */
.category-card {
    position: relative;
    background: var(--surface);
    height: 480px;
    /* Slightly taller for a more premium, magazine-style feel */
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    /* Center content horizontally */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Very subtle border */
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px rgba(224, 150, 147, 0.15);
    border-color: rgba(224, 150, 147, 0.3);
}

.category-img-bg {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 1;
    transition: transform 1.2s ease;
}

.category-card:hover .category-img-bg {
    transform: scale(1.05);
    /* Very subtle scale */
}

/* Minimalist Overlay */
.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, transparent 40%);
    z-index: 2;
    transition: opacity 0.3s;
}

/* Glass Floating Label */
.category-content {
    position: relative;
    z-index: 3;
    padding: 20px 30px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    width: 80%;
    /* Don't fill full width */
    transition: all 0.4s ease;
}

.category-card:hover .category-content {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px);
}

.category-card h3 {
    font-family: 'Playfair Display', serif;
    /* Elegant Serif */
    font-size: 24px;
    margin-bottom: 4px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

.category-card span {
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Swiper Navigation/Pagination Overrides */
.category-slider {
    padding: 20px 0 60px !important;
    position: relative;
}

.swiper-button-next,
.swiper-button-prev {
    background: var(--surface);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--primary) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px !important;
    font-weight: 800;
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 12px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(224, 150, 147, 0.12);
    border-color: rgba(224, 150, 147, 0.2);
}

.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e63946;
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.2);
}

.img-wrapper {
    background: #fdfaf8;
    border-radius: 12px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover .img-wrapper img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px 10px 10px;
}

.product-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-price {
    font-size: 22px;
    font-weight: 500;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.add-to-cart-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -20%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #1a1a1a;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: all 0.4s ease;
    white-space: nowrap;
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 5;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-card:hover .add-to-cart-btn {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.product-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 10px;
}

.badge-bestseller {
    font-size: 9px;
    background: #fff5f5;
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.price-new {
    color: var(--secondary);
    font-weight: 500;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 16px;
    margin-left: 10px;
    font-weight: 400;
}


.add-to-cart-btn:hover {
    background: var(--primary);
}

.product-info h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Base styles for inner pages like product and 404 */
.page-header {
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.error-page {
    text-align: center;
    padding: 100px 0;
}

.error-page i {
    font-size: 100px;
    color: var(--primary);
    margin-bottom: 20px;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 100px;
    margin-top: 40px;
}

.product-image-large {
    background: #f4f5f7;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    height: 600px;
}

.product-image-large img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info-large h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.product-price-large {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 24px;
}

.product-desc-large {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e6f8ec;
    color: #0b8a36;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 30px;
}

.btn-large {
    width: 100%;
    padding: 20px;
    font-size: 20px;
    justify-content: center;
}

/* Bespoke Editorial Story Section */
.story-section {
    padding: 140px 0;
    position: relative;
    background-color: #fffaf8;
    background-image: url("https://www.transparenttextures.com/patterns/handmade-paper.png");
    /* Subtle paper grain */
    overflow: hidden;
}

.floating-botanical {
    position: absolute;
    color: var(--primary);
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-30px) rotate(5deg);
    }

    100% {
        transform: translateY(0) rotate(0);
    }
}

.story-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 100px;
    position: relative;
    z-index: 2;
}

.story-img-wrapper {
    position: relative;
    padding: 20px;
}



.story-img-container {
    border-radius: 40px;
    overflow: hidden;
    height: 650px;
    box-shadow: 0 40px 100px rgba(224, 150, 147, 0.15);
}

.story-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 35px;
    color: var(--secondary);
    letter-spacing: -1px;
}

.story-content p {
    font-size: 19px;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 45px;
}

.founder-signature {
    margin-top: 50px;
    font-family: 'Sacramento', cursive;
    font-size: 42px;
    color: var(--primary);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.founder-signature span {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    font-weight: 600;
}

.story-features-editorial {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 40px;
}

.editorial-feature {
    display: flex;
    gap: 20px;
}

.editorial-feature i {
    font-size: 28px;
    color: var(--primary);
    opacity: 0.8;
}

.editorial-feature h4 {
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 600;
}

.editorial-feature p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}


/* Story Section Redesign */
.story-section {
    padding: 120px 0;
    position: relative;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.story-img-container {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    height: 600px;
}

.story-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--secondary);
}

.story-content p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 40px;
}

.story-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.story-feature {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.story-feature i {
    font-size: 24px;
    color: var(--primary);
}

.story-feature h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.story-feature p {
    font-size: 14px;
    margin-bottom: 0;
}


/* Luxury Footer Styling */
footer {
    margin-top: 100px;
    position: relative;
    overflow: hidden;
    padding-bottom: 40px;
}

.footer-glass {
    position: relative;
    z-index: 2;
    padding: 80px 40px 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand h4 {
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
}

.footer-links h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--secondary);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 14px;
}

.footer-links ul li a {
    color: var(--text-muted);
    transition: all 0.3s ease;
    font-size: 16px;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.footer-newsletter h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--secondary);
}

.footer-newsletter p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 14px 24px;
    border-radius: 40px;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
}

.newsletter-form input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 5px 15px rgba(224, 150, 147, 0.1);
}

.btn-subscribe {
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(224, 150, 147, 0.2);
}

.btn-subscribe:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-dark);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 15px;
}


.social-links {
    display: flex;
    gap: 24px;
}

.social-links a {
    font-size: 24px;
    color: var(--text-muted);
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}


/* Admin Shared Components */
.admin-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.admin-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    /* Prevent overlap on narrow screens */
}

.admin-form-row>.form-group {
    flex: 1;
    min-width: 250px;
    /* Force wrap if too narrow */
    margin-bottom: 0;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

/* Premium Admin Tables */
.admin-table-container {
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    margin-bottom: 30px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: var(--text-main);
}

.admin-table thead th {
    background: #fcfaf8;
    padding: 18px 24px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.admin-table tbody td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    transition: background 0.2s ease;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover td {
    background: #fffcfb;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending {
    background: #fff7ed;
    color: #c2410c;
}

.badge-shipped {
    background: #eff6ff;
    color: #1d4ed8;
}

.badge-delivered {
    background: #f0fdf4;
    color: #15803d;
}

.badge-cancelled {
    background: #fef2f2;
    color: #b91c1c;
}

.badge-new {
    background: #fdf2f8;
    color: #be185d;
}

.badge-success {
    background: #f0fdf4;
    color: #15803d;
}

.badge-warning {
    background: #fffbeb;
    color: #b45309;
}

.badge-danger {
    background: #fef2f2;
    color: #b91c1c;
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-action {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    background: #f9f9f9;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-action:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.btn-action.danger:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

/* Secondary Admin Navigation (Sticky & Scrollable) */
.admin-secondary-nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    position: sticky;
    top: 100px;
    /* Stick below the main site header */
    z-index: 1001;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Premium Admin Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding-left: 4px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.form-control::placeholder {
    color: #cbd5e1;
}

.form-control:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(224, 150, 147, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

select.form-control {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 10px;
    padding-right: 45px;
}

/* Modern Toggles for Forms */
.form-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: #fdfbf7;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-switch:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.form-switch input {
    display: none;
}

.form-switch .switch-track {
    width: 44px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 50px;
    position: relative;
    transition: all 0.3s;
}

.form-switch .switch-thumb {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-switch input:checked+.switch-track {
    background: var(--primary);
}

.form-switch input:checked+.switch-track .switch-thumb {
    left: 23px;
}

.form-switch .switch-text {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

/* Sections Management List Styles (Premium Refinement) */
.sections-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 10px 0;
}

.section-row {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    padding: 24px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: grab;
    user-select: none;
    position: relative;
}

.section-row:active {
    cursor: grabbing;
}

.section-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(224, 150, 147, 0.12);
    border-color: rgba(224, 150, 147, 0.2);
    background: #fffafa;
}

.section-row.dragging {
    opacity: 0.4;
    transform: scale(0.96);
    box-shadow: none;
}

.section-row.drag-over {
    border: 2px dashed var(--primary);
    background: rgba(224, 150, 147, 0.05);
}

.drag-handle {
    color: #cbd5e1;
    font-size: 24px;
    cursor: grab;
    flex-shrink: 0;
    transition: color 0.3s ease;
    padding-right: 5px;
}

.section-row:hover .drag-handle {
    color: var(--primary);
}

.section-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fffcfb 0%, #fff5f5 100%);
    border: 1px solid rgba(224, 150, 147, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(224, 150, 147, 0.08);
    transition: all 0.3s ease;
}

.section-row:hover .section-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(224, 150, 147, 0.3);
}

.section-info {
    flex: 1;
    min-width: 0;
}

.section-info .section-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 4px;
    font-family: 'Playfair Display', serif;
}

.section-info .section-key {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #f8fafc;
    padding: 3px 10px;
    border-radius: 50px;
    border: 1px solid #f1f5f9;
}

.order-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #94a3b8;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.section-row:hover .order-badge {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.admin-secondary-nav .container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.admin-secondary-nav .container::-webkit-scrollbar {
    display: none;
}

.admin-secondary-nav a {
    white-space: nowrap;
    padding: 8px 16px;
    background: #f9f9f9;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.admin-secondary-nav a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.nav-badge-sm {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 5px rgba(255, 71, 87, 0.3);
    border: 1px solid #fff;
}

.admin-secondary-nav a {
    position: relative;
    /* For badge positioning */
}

/* Mobile Overrides for Desktop Views (Admin & Common) */
@media (max-width: 991px) {
    header .container {
        flex-direction: column !important;
        padding: 20px !important;
        gap: 15px;
    }

    header .header-search {
        max-width: 100% !important;
        margin: 0 !important;
        width: 100%;
    }

    header nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }

    header nav a {
        margin: 0 !important;
        font-size: 13px;
    }

    .admin-secondary-nav {
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        padding: 10px 20px;
    }

    .admin-container {
        padding: 15px !important;
        max-width: 100% !important;
    }

    .admin-card {
        padding: 20px !important;
        border-radius: 20px;
    }

    .admin-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 15px;
        margin-bottom: 25px;
    }

    .admin-header .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .admin-form-row {
        flex-direction: column;
        gap: 20px;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
    }

    .stat-card {
        padding: 20px !important;
    }

    .stat-value {
        font-size: 24px !important;
    }

    .analytics-grid {
        grid-template-columns: 1fr !important;
    }

    /* Table responsiveness */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    /* Panel form responsiveness */
    .panel form {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .range-presets,
    .custom-range {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .custom-range {
        justify-content: space-between;
    }

    .date-input {
        flex: 1;
        min-width: 120px;
    }
}

/* Premium Save Button */
.btn-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    padding: 18px 60px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 25px rgba(224, 150, 147, 0.3);
    margin-top: 30px;
    width: 100%;
}

.btn-save:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(224, 150, 147, 0.45);
    filter: brightness(1.05);
}

.btn-save:active {
    transform: translateY(-2px);
}

.btn-save i {
    font-size: 22px;
}
