/* Theme Variables */
:root {
    --khaki: #C3B091;
    --deep-brown: #5A3E2B;
    --cream: #FDF6E3;
    --burnt-orange: #D77A2C;
    --burnt-orange-hover: #b96522;
    --brown-hover: #4b3325;
}

/* General Styles */
body {
    background: var(--khaki) !important;
    min-height: 100vh;
    position: relative;
    padding-top: 76px; /* Account for fixed navbar height */
    padding-bottom: 100px; /* Account for fixed footer height */
    font-family: 'Lato', 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--deep-brown);
    display: flex;
    flex-direction: column;
}

/* Body styling - solid background, no animation needed */

/* Smooth Scrolling Performance */
html {
    scroll-behavior: smooth;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Performance optimizations for smooth scrolling */
body {
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-scroll-behavior: smooth;
    -moz-scroll-behavior: smooth;
    -ms-scroll-behavior: smooth;
}

.container {
    will-change: auto;
}

/* Enhanced smooth scrolling with momentum */
html {
    scroll-behavior: smooth;
    -webkit-scroll-behavior: smooth;
    -moz-scroll-behavior: smooth;
    -ms-scroll-behavior: smooth;
}

/* Optimize all interactive elements */
button, a, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Smooth transitions for all elements */
* {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Disable transitions on scroll for better performance */
.scrolling * {
    transition: none !important;
}

/* Scroll to top button styles */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(90, 62, 43, 0.95);
    color: var(--cream);
    border: none;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scroll-to-top:hover {
    background: rgba(90, 62, 43, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:active {
    transform: translateY(0);
}

/* Enhanced smooth scrolling with momentum */
.smooth-scroll {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Optimize form elements for better responsiveness */
.form-control, .btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(215, 122, 44, 0.2);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Main Content Container */
.container.mt-4 {
    position: relative;
    z-index: 1;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    flex: 1 0 auto;
}

/* Optimize card rendering */
.card {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

/* Smooth hover effects */
.card:hover {
    transform: translateY(-2px) translateZ(0);
    -webkit-transform: translateY(-2px) translateZ(0);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Header Banner Styles */
.header-banner {
    width: 100%;
    height: clamp(180px, 28vw, 420px);
    overflow: hidden;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(195, 176, 145, 0.5) 0%,
        rgba(195, 176, 145, 0.25) 50%,
        rgba(195, 176, 145, 0.10) 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
}

.header-content {
    z-index: 2;
}

/* Responsive header banner adjustments */
@media (max-width: 768px) {
    .header-banner { height: clamp(160px, 40vw, 260px); border-radius: 12px; }
}

@media (max-width: 480px) {
    .header-banner { height: clamp(140px, 45vw, 220px); border-radius: 10px; }
}

/* No overlay - pure black background */

/* Card Styles */
.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(195, 176, 145, 0.6);
    margin-bottom: 20px;
    background-color: var(--cream);
    border-radius: 12px;
}

.card-header {
    background-color: rgba(195, 176, 145, 0.1);
    border-bottom: 1px solid rgba(195, 176, 145, 0.3);
    color: var(--deep-brown);
}

/* Form Styles */
.form-control:focus {
    border-color: var(--burnt-orange);
    box-shadow: 0 0 0 0.2rem rgba(215, 122, 44, 0.25);
}

/* Map Styles */
#map {
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.navbar-khaki {
    background-color: var(--deep-brown) !important;
}

.navbar-khaki .nav-link,
.navbar-khaki .navbar-brand,
.navbar-khaki .navbar-toggler {
    color: var(--cream) !important;
}

/* Ensure toggler icon is visible on custom colored navbar */
.navbar-khaki .navbar-toggler {
    border-color: rgba(253, 246, 227, 0.5) !important;
}

.navbar-khaki .navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(253, 246, 227, 0.35) !important;
}

.navbar-khaki .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(253, 246, 227, 0.95)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

.navbar-khaki .nav-link:hover,
.navbar-khaki .nav-link:focus {
    color: var(--khaki) !important;
}

.navbar-brand {
    font-weight: 500;
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

/* Collapsed menu background and spacing for readability on mobile */
.navbar .navbar-collapse {
    transition: height 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 991.98px) {
    .navbar .navbar-collapse {
        background-color: var(--deep-brown);
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(195, 176, 145, 0.25);
    }
    .navbar .nav-link {
        padding: 0.5rem 0.25rem;
        font-size: 1rem;
    }
    .navbar-brand {
        font-size: 1rem;
    }
    .navbar-logo {
        height: 32px;
    }
    /* Reduce body top padding when navbar is more compact on mobile */
    body {
        padding-top: 64px;
    }
}

/* Button Styles */
.btn-primary {
    background-color: var(--burnt-orange);
    border-color: var(--burnt-orange);
    color: var(--cream);
}

.btn-primary:hover {
    background-color: var(--burnt-orange-hover);
    border-color: var(--burnt-orange-hover);
}

.btn-brown {
    background-color: var(--deep-brown);
    border-color: var(--deep-brown);
    color: var(--cream);
}

.btn-brown:hover {
    background-color: var(--brown-hover);
    border-color: var(--brown-hover);
    color: var(--cream);
}

/* Modern Product Card Styles */
.modern-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: 
        transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        background 0.3s ease-out;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, box-shadow, background;
    animation: card-entrance 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-fill-mode: both;
}

.modern-card:hover {
    transform: translateY(-18px) scale(1.04) translateZ(0);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 15px 30px rgba(0, 0, 0, 0.08),
        0 5px 15px rgba(0, 0, 0, 0.05);
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

.card-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    transform: translateZ(0);
}

.product-image {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.modern-card:hover .product-image {
    transform: scale(1.06) translateZ(0);
}

.card-img-placeholder {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px 20px 0 0;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 50%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 15px;
}

.bestseller-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b4513;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: gentle-pulse 3s ease-in-out infinite;
    transition: 
        transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, box-shadow;
}

.bestseller-badge:hover {
    transform: scale(1.08) translateZ(0);
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.5),
        0 4px 15px rgba(255, 215, 0, 0.3);
}

.stock-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: 
        transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, box-shadow;
}

.stock-badge:hover {
    transform: scale(1.04) translateZ(0);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.stock-badge.low-stock {
    background: linear-gradient(135deg, #ff9500 0%, #ffb347 100%);
    color: white;
}

.stock-badge.out-of-stock {
    background: linear-gradient(135deg, #dc3545 0%, #ff6b7a 100%);
    color: white;
}

.card-header-section {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 15px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--deep-brown);
    line-height: 1.3;
}

.category-badge {
    background: linear-gradient(135deg, var(--khaki) 0%, #d4c5a0 100%);
    color: var(--deep-brown);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: 
        transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        background 0.2s ease-out;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, box-shadow, background;
    display: inline-block;
}

.category-badge:hover {
    transform: scale(1.04) translateZ(0);
    box-shadow: 
        0 4px 12px rgba(195, 176, 145, 0.3),
        0 2px 6px rgba(195, 176, 145, 0.2);
    background: linear-gradient(135deg, #d4c5a0 0%, var(--khaki) 100%);
}

.card-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.modern-card:hover .card-description {
    color: #495057;
}

.card-stats {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 500;
    color: var(--deep-brown);
}

.stat-label {
    color: #6c757d;
    font-size: 0.85rem;
}

.price-tag {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--burnt-orange);
    margin: 0;
    text-shadow: 0 2px 4px rgba(215, 122, 44, 0.2);
}

.btn-modern {
    background: linear-gradient(135deg, var(--burnt-orange) 0%, #e68a3d 100%);
    border: none;
    border-radius: 15px;
    padding: 12px 24px;
    font-weight: 500;
    color: white;
    transition: 
        transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        background 0.2s ease-out;
    box-shadow: 0 4px 15px rgba(215, 122, 44, 0.3);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, box-shadow, background;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-2px) scale(1.03) translateZ(0);
    box-shadow: 
        0 8px 25px rgba(215, 122, 44, 0.4),
        0 4px 12px rgba(215, 122, 44, 0.3);
    background: linear-gradient(135deg, #e68a3d 0%, var(--burnt-orange-hover) 100%);
    color: white;
}

.btn-modern-outline {
    background: transparent;
    border: 2px solid var(--burnt-orange);
    border-radius: 15px;
    padding: 10px 24px;
    font-weight: 500;
    color: var(--burnt-orange);
    transition: 
        transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        color 0.2s ease-out,
        border-color 0.2s ease-out;
    text-decoration: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, background, color, border-color;
    position: relative;
    overflow: hidden;
}

.btn-modern-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--burnt-orange);
    transition: width 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.btn-modern-outline:hover::before {
    width: 100%;
}

.btn-modern-outline:hover {
    color: white;
    transform: translateY(-2px) scale(1.03) translateZ(0);
    box-shadow: 
        0 8px 25px rgba(215, 122, 44, 0.3),
        0 4px 12px rgba(215, 122, 44, 0.2);
    border-color: var(--burnt-orange-hover);
}

.btn-modern-disabled {
    background: linear-gradient(135deg, #6c757d 0%, #8a9199 100%);
    border: none;
    border-radius: 15px;
    padding: 12px 24px;
    font-weight: 500;
    color: white;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Legacy Product Card Styles for backward compatibility */
.product-card {
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    object-fit: cover;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes gentle-pulse {
    0%, 100% { 
        transform: scale(1) translateZ(0);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    }
    50% { 
        transform: scale(1.02) translateZ(0);
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Enhanced card entrance animation is now included in .modern-card above */

/* Modern Register Page Styles */
.register-page {
    min-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    animation: register-entrance 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes register-entrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Header Styles */
.register-header {
    background: linear-gradient(135deg, var(--deep-brown) 0%, #4a3426 100%);
    color: white;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.register-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 2;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: 70px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
}

.header-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    max-width: 500px;
    line-height: 1.5;
}

/* Body Styles */
.register-body {
    padding: 40px;
}

.register-form {
    max-width: none;
}

/* Form Sections */
.form-section {
    margin: 0;
    padding: 35px;
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 0;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-section:hover {
    background: linear-gradient(145deg, #f1f3f4 0%, #ffffff 100%);
    transform: translateY(-1px);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
}

.section-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--burnt-orange) 0%, #e68a3d 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(215, 122, 44, 0.3);
}

.section-content {
    flex: 1;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--deep-brown);
    margin: 0 0 5px 0;
    font-family: 'Playfair Display', Georgia, serif;
}

.section-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 25px;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 25px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Form Groups */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--deep-brown);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-label i {
    color: var(--burnt-orange);
    width: 16px;
}

.optional {
    color: #6c757d;
    font-weight: 400;
    font-size: 0.85rem;
}

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--deep-brown);
}

.form-input:focus {
    outline: none;
    border-color: var(--burnt-orange);
    box-shadow: 0 0 0 3px rgba(215, 122, 44, 0.1);
    transform: translateY(-1px);
}

.form-input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-input::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Password Field */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--burnt-orange);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 10;
}

.password-toggle:hover {
    background: rgba(215, 122, 44, 0.1);
    transform: translateY(-50%) scale(1.1);
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Textarea */
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--deep-brown);
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--burnt-orange);
    box-shadow: 0 0 0 3px rgba(215, 122, 44, 0.1);
    transform: translateY(-1px);
}

.form-textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Input Feedback */
.input-feedback {
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

.input-feedback:not(:empty) {
    color: #dc3545;
}

.input-hint {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Location Search */
.location-search {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-container {
    position: relative;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--burnt-orange);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.search-btn:hover {
    background: var(--burnt-orange-hover);
    transform: translateY(-50%) scale(1.05);
}

.search-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.search-btn:disabled:hover {
    background: #6c757d;
    transform: translateY(-50%);
}

/* Map Container */
.map-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    height: 350px;
    background: #f8f9fa;
}

#map {
    height: 100%;
    width: 100%;
    border-radius: 15px;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1000;
}

.map-instructions {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Address Details */
.address-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Map overlay styles removed - no longer needed */

.address-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Terms Section */
.terms-section {
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
}

.terms-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--deep-brown);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #6c757d;
    border-radius: 4px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--burnt-orange);
    border-color: var(--burnt-orange);
}

.checkbox-label:hover .checkmark {
    border-color: var(--burnt-orange);
    box-shadow: 0 0 0 2px rgba(215, 122, 44, 0.1);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.terms-text {
    flex: 1;
}

.terms-link {
    color: var(--burnt-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: var(--burnt-orange-hover);
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    margin: 0;
    padding: 40px 35px;
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 0 0 20px 20px;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* Register Button */
.btn-register {
    background: linear-gradient(135deg, var(--burnt-orange) 0%, #e68a3d 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(215, 122, 44, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-register:hover::before {
    left: 100%;
}

.btn-register:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(215, 122, 44, 0.4);
    background: linear-gradient(135deg, #e68a3d 0%, var(--burnt-orange-hover) 100%);
}

.btn-register:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-register.loading {
    pointer-events: none;
}

.btn-loading {
    display: none;
}

.btn-register.loading .btn-loading {
    display: block;
}

.btn-register.loading span {
    display: none;
}

/* Login Link */
.login-link {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.login-text {
    color: #6c757d;
    font-size: 0.95rem;
}

.login-btn {
    color: var(--burnt-orange);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--burnt-orange);
    background: transparent;
}

.login-btn:hover {
    background: var(--burnt-orange);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(215, 122, 44, 0.3);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-warning {
    border-left: 4px solid #ffc107;
}

.notification-info {
    border-left: 4px solid #17a2b8;
}

.notification i {
    font-size: 1.2rem;
}

.notification-success i {
    color: #28a745;
}

.notification-error i {
    color: #dc3545;
}

.notification-warning i {
    color: #ffc107;
}

.notification-info i {
    color: #17a2b8;
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.alert i {
    font-size: 1.1rem;
}

.login-link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.login-text {
    color: #6c757d;
    font-size: 0.95rem;
}

.login-btn {
    color: var(--burnt-orange);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.login-btn:hover {
    background: rgba(215, 122, 44, 0.1);
    color: var(--burnt-orange-hover);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .register-page {
        margin: 10px;
        border-radius: 15px;
    }
    
    .register-header {
        padding: 40px 25px;
        border-radius: 15px 15px 0 0;
    }
    
    .header-title {
        font-size: 2rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .register-body {
        padding: 0;
    }
    
    .form-section {
        padding: 25px 20px;
        margin-bottom: 0;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .section-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .form-actions {
        padding: 30px 20px;
        border-radius: 0 0 15px 15px;
    }
    
    .btn-register {
        padding: 12px 30px;
        font-size: 1rem;
        min-width: 180px;
    }
    
    .login-link {
        flex-direction: column;
        gap: 10px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Small Screen Responsive */
@media (max-width: 480px) {
    .register-page {
        margin: 5px;
        border-radius: 12px;
    }
    
    .register-header {
        padding: 30px 20px;
        border-radius: 12px 12px 0 0;
    }
    
    .header-title {
        font-size: 1.8rem;
    }
    
    .header-subtitle {
        font-size: 0.95rem;
    }
    
    .form-section {
        padding: 20px 15px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .form-actions {
        padding: 25px 15px;
        border-radius: 0 0 12px 12px;
    }
    
    .btn-register {
        padding: 12px 25px;
        font-size: 0.95rem;
        min-width: 160px;
    }
    
    .map-container {
        height: 200px;
    }
    
    .form-input, .form-textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
    }
}

@keyframes card-entrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95) translateZ(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) translateZ(0);
    }
}

/* Prevent animation replay after first load */
.modern-card.animation-complete {
    animation: none !important;
    opacity: 1;
    transform: translateY(0) scale(1) translateZ(0);
}

/* Order Tracking */
.order-timeline {
    position: relative;
    padding: 20px 0;
}

.order-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: #ddd;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item.active::before {
    background-color: #28a745;
}

/* Dashboard Stats */
.stats-card {
    background: linear-gradient(45deg, var(--burnt-orange), var(--deep-brown));
    color: white;
    border-radius: 10px;
    padding: 20px;
}

.stats-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .order-timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
} 

.hero-headline {
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    color: var(--deep-brown);
    font-weight: 500;
    background: rgba(253, 246, 227, 0.8);
    padding: 10px 18px;
    border-radius: 10px;
    margin-bottom: 12px;
} 

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    color: var(--deep-brown);
    font-weight: 500;
}

.text-primary {
    color: var(--burnt-orange) !important;
} 

/* Footer */
.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--deep-brown);
    color: var(--cream);
    padding: 20px 0;
    z-index: 1020;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(195, 176, 145, 0.2);
}

.site-footer a { color: var(--khaki); text-decoration: none; }
.site-footer a:hover { color: var(--burnt-orange); }

/* Footer responsive adjustments */
@media (max-width: 768px) {
    .site-footer {
        padding: 15px 0;
    }
    
    .site-footer .row {
        text-align: center;
    }
    
    .site-footer .col-md-6:first-child {
        margin-bottom: 10px;
    }
    
    .site-footer .footer-social {
        justify-content: center;
    }
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(195, 176, 145, 0.2);
    color: var(--khaki);
    margin-right: 8px;
}

.footer-social a:hover {
    background: rgba(215, 122, 44, 0.2);
    color: var(--burnt-orange);
}

/* Theme Badge Colors */
.badge.bg-success {
    background-color: var(--deep-brown) !important;
    color: var(--cream);
}

/* --- Responsive adjustments for product cards to avoid overlap on small screens --- */
@media (max-width: 768px) {
    .modern-card:hover {
        transform: none;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    }
    .modern-card {
        border-radius: 16px;
    }
    .card-body {
        padding: 1rem;
    }
    .product-image {
        height: 180px;
    }
    .card-title { font-size: 1.15rem; }
    .card-description { font-size: 0.95rem; }
    .price-tag { font-size: 1.5rem; }
    .bestseller-badge, .stock-badge { padding: 6px 12px; font-size: 0.8rem; }
    .btn-modern { padding: 10px 16px; font-size: 0.95rem; border-radius: 12px; }
    .btn-modern-outline { padding: 9px 16px; font-size: 0.95rem; border-radius: 12px; }
}

@media (max-width: 480px) {
    .product-image { height: 150px; }
    .card-title { font-size: 1.05rem; }
    .card-description { font-size: 0.93rem; }
    .price-tag { font-size: 1.35rem; }
    .btn-modern, .btn-modern-outline { padding: 9px 14px; font-size: 0.92rem; }
}

.badge.bg-warning {
    background-color: var(--burnt-orange) !important;
    color: var(--cream);
}

.badge.bg-danger {
    background-color: #8b4513 !important;
    color: var(--cream);
}

/* Additional theme-aligned badge variants */
.badge.bg-primary {
    background-color: var(--burnt-orange) !important;
    color: var(--cream) !important;
}

.badge.bg-info {
    background-color: var(--deep-brown) !important;
    color: var(--cream) !important;
}

.badge.bg-secondary {
    background-color: var(--khaki) !important;
    color: var(--deep-brown) !important;
}

.badge.bg-light {
    background-color: var(--cream) !important;
    color: var(--deep-brown) !important;
    border: 1px solid rgba(195, 176, 145, 0.6);
}

.badge.bg-dark {
    background-color: var(--deep-brown) !important;
    color: var(--cream) !important;
}

.text-warning {
    color: var(--burnt-orange) !important;
}

.cart-link { position: relative; color: var(--deep-brown); }
.cart-link:hover { color: var(--burnt-orange); }
.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--cream);
    color: var(--deep-brown);
    border: 1px solid rgba(90, 62, 43, 0.25);
    border-radius: 999px;
    padding: 1px 6px;
    font-size: 12px;
    min-width: 18px;
    text-align: center;
}

/* Register page background - placed at end for highest priority */
body.register-body-bg {
    background: url('../assets/images/BG.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
} 