/* Custom Premium Styles for Efie Ne Fie Bakery */

:root {
    --brand-red: #e63946;
    --brand-red-hover: #d62828;
    --bg-white: #ffffff;
    --bg-offwhite: #f8f9fa;
    --text-charcoal: #2b2d42;
    --text-muted: #6c757d;
    --border-color: #eaeaea;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-offwhite);
    color: var(--text-charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-charcoal);
    margin-bottom: 0.5rem;
}
a {
    color: var(--text-charcoal);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--brand-red);
}

/* Header */
.header {
    background: transparent;
    padding: 1.5rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
}
.header.scrolled {
    padding: 0.75rem 5%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}
.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
}
.mobile-menu-trigger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-charcoal);
    cursor: pointer;
}
.mobile-menu-header {
    display: none;
}
.menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
}
.mobile-cart {
    display: none;
}

.category-nav {
    display: flex;
    gap: 1.5rem;
    margin-right: auto;
    margin-left: 2rem;
}
.header .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-red);
    letter-spacing: 1px;
    transition: color 0.4s ease;
}
.header.scrolled .logo {
    color: var(--brand-red);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}
.header.scrolled .nav-actions {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
}

/* Category Navigation (left side) */
.category-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 0.4rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}
.header.scrolled .category-nav {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
}
.category-nav a {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.category-nav a:hover {
    color: var(--text-charcoal);
    background: rgba(0,0,0,0.03);
}
.category-nav a.active {
    background: var(--brand-red);
    color: white;
    box-shadow: 0 2px 10px rgba(230, 57, 70, 0.3);
}
.cart-trigger {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    color: var(--text-charcoal);
    font-size: 1.25rem;
    transition: color 0.4s ease;
}
.header.scrolled .cart-trigger {
    color: var(--text-charcoal);
}
.cart-trigger:hover {
    color: var(--brand-red);
}
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--brand-red);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    background: url('../img/hero_lady.jpeg') no-repeat right center/cover;
    background-color: var(--bg-white);
    color: var(--text-charcoal);
    padding: 0 5%;
}
.hero h1 {
    font-size: 5.5rem;
    color: var(--text-charcoal);
    margin-bottom: 1rem;
    text-shadow: none;
    line-height: 1.1;
}

/* Typewriter Cursor */
.cursor {
    display: inline-block;
    width: 3px;
    animation: blink 0.75s step-end infinite;
    margin-left: 5px;
}
.cursor.stop-blinking {
    animation: none;
}
@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}
.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 500px;
}
.btn-primary {
    display: inline-block;
    background: var(--brand-red);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}
.btn-primary:hover {
    background: var(--brand-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.6);
    color: white;
}

/* Section Title */
.section-title {
    text-align: center;
    padding: 0 20px 2rem;
}
.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.section-title p {
    color: var(--brand-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-padding {
    padding: 5rem 0;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Features Grid (Why Choose Us) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}
.feature-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    font-size: 2.5rem;
    color: var(--brand-red);
    margin-bottom: 1.5rem;
}

/* How It Works */
.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 3rem;
    position: relative;
}
.step-box {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
}
.step-number {
    width: 60px;
    height: 60px;
    background: var(--brand-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}
.step-line {
    flex: 1;
    height: 2px;
    background: var(--brand-red);
    margin-top: 30px;
    position: relative;
    z-index: 1;
    opacity: 0.3;
}

/* Instagram Section */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.insta-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 177.77%; /* 16:9 vertical (9:16) aspect ratio */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.15);
    border: 2px solid rgba(230, 57, 70, 0.3);
    background: #000;
    transition: all 0.3s ease;
}
.insta-video-wrapper:hover {
    border-color: var(--brand-red);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3);
}
.insta-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}
.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}
.insta-video-wrapper.playing .video-overlay {
    opacity: 0;
}
.custom-center-btn {
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 70px; height: 70px;
    background: rgba(230, 57, 70, 0.9);
    color: white; border: none; border-radius: 50%;
    font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 2; transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
}
.custom-center-btn .play-icon {
    padding-left: 5px; /* Optically center the play icon */
}
.custom-center-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--brand-red);
}
.insta-video-wrapper.playing .custom-center-btn {
    opacity: 0;
    visibility: hidden;
}
.insta-video-wrapper.playing:hover .custom-center-btn {
    opacity: 1;
    visibility: visible;
}
.custom-video-controls {
    position: absolute;
    bottom: 15px; right: 15px;
    z-index: 2;
    display: flex; gap: 10px;
}
.mute-btn {
    width: 40px; height: 40px;
    background: rgba(230, 57, 70, 0.9);
    color: white; border: none; border-radius: 50%;
    font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.mute-btn:hover {
    background: var(--brand-red);
    transform: scale(1.1);
}
.insta-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.insta-video-wrapper:hover .insta-overlay {
    opacity: 1;
}
.insta-overlay i {
    color: white;
    font-size: 2.5rem;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.review-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--brand-red);
}
.stars {
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.review-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-charcoal);
}
.review-author {
    font-weight: 700;
    color: var(--text-muted);
}

/* Products Grid */
.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}
.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}
.product-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: transparent;
}
.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.product-card:hover .product-image-container img {
    transform: scale(1.05);
}
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.product-card:hover .product-overlay {
    opacity: 1;
}
.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-price {
    color: var(--brand-red);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.product-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}
.quantity-text {
    font-size: 0.85rem;
    color: #28a745;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Premium Select Dropdown */
.premium-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff url('data:image/svg+xml;utf8,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1.5L6 6.5L11 1.5" stroke="%232b2d42" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat right 15px center;
    background-size: 12px;
    padding: 10px 35px 10px 15px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    font-size: 0.95rem;
    color: var(--text-charcoal);
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.premium-select:focus {
    border-color: var(--brand-red) !important;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}
.premium-select:hover {
    border-color: #ccc !important;
}

/* Slide-out Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background: var(--bg-white);
    z-index: 2001;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}
.cart-drawer.active {
    right: 0;
}
.cart-drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-drawer-header h3 {
    margin: 0;
}
.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}
.close-cart:hover {
    color: var(--brand-red);
}
.cart-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}
.cart-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-offwhite);
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #e9ecef;
}
.cart-item-details {
    flex-grow: 1;
}
.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.cart-item-price {
    color: var(--brand-red);
    font-weight: 700;
}
.cart-item-remove {
    color: #dc3545;
    font-size: 0.85rem;
    cursor: pointer;
    background: none;
    border: none;
}
.cart-item-remove:hover {
    text-decoration: underline;
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.cart-total-label {
    font-size: 1.1rem;
    font-weight: 600;
}
.cart-total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-red);
}
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.form-control:focus {
    border-color: var(--brand-red);
}

/* Custom File Input Styling */
input[type="file"]::file-selector-button {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    margin-right: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}
input[type="file"]::file-selector-button:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Modals */
.swal2-container {
    z-index: 4000 !important;
}
.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}
.custom-modal-overlay.active {
    display: flex;
}
.custom-modal {
    background: var(--bg-white);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    animation: modalPop 0.3s ease;
    overflow: hidden;
}
.custom-modal.split-modal {
    max-width: 800px;
    padding: 0;
    display: flex;
    flex-direction: row;
}
.modal-left {
    flex: 1;
    background: var(--bg-offwhite);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-right: 1px solid var(--border-color);
}
.modal-side-logo {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}
.modal-right {
    flex: 1;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 768px) {
    .custom-modal.split-modal {
        flex-direction: column;
    }
    .modal-left {
        display: none; /* Hide image on small screens for better UX */
    }
}
@keyframes modalPop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-muted);
}
.empty-cart-msg {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 0;
}

/* Footer */
.footer {
    background-color: var(--bg-white);
    padding: 4rem 5% 1rem;
    border-top: 1px solid var(--border-color);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--brand-red);
    margin-bottom: 1rem;
}
.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-offwhite);
    border-radius: 50%;
    color: var(--text-charcoal);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}
.social-links a:hover {
    background: var(--brand-red);
    color: white;
    transform: translateY(-3px);
}
.footer-links h4, .footer-contact h4 {
    margin-bottom: 1.5rem;
}
.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.footer-links a:hover {
    color: var(--brand-red);
}
.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

    /* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Header & Mobile Menu */
    .header {
        padding: 0.75rem 1rem;
    }
    .header .logo img {
        height: 50px !important;
    }
    .mobile-menu-trigger {
        display: block;
    }
    
    .header .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    
    /* Offcanvas Side Panel */
    .nav-container {
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        z-index: 1005;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
    }
    .nav-container.open {
        left: 0;
    }
    .menu-overlay.open {
        display: block;
        z-index: 1004;
    }
    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 2rem;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1rem;
    }
    .close-menu {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-muted);
        cursor: pointer;
    }
    
    .category-nav {
        flex-direction: column;
        width: 100%;
        margin: 0 !important;
        gap: 1rem;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        padding: 0;
    }
    .category-nav a {
        display: block;
        width: 100%;
        padding: 0.75rem 0;
        font-size: 1.1rem;
        border-radius: 8px;
    }
    .nav-actions {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: 1rem;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        padding: 0;
        margin: 0 !important;
    }
    .nav-actions a {
        font-size: 1.1rem;
        padding: 0.75rem 0;
        width: 100%;
    }
    
    .desktop-cart {
        display: none !important;
    }
    .mobile-cart {
        display: block;
        margin-left: auto;
    }

    /* Steps */
    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .step-line {
        display: none;
    }

    /* Hero */
    .hero {
        background-position: 70% center;
        justify-content: center;
        text-align: center;
    }
    .hero h1 {
        font-size: 2.2rem;
        background: rgba(255, 255, 255, 0.85);
        padding: 15px;
        border-radius: 12px;
        white-space: normal; /* Disable typewriter nowrap on small screens */
        border-right: none;
        width: auto;
        animation: none;
    }
    .hero p {
        background: rgba(255, 255, 255, 0.85);
        padding: 15px;
        border-radius: 12px;
        font-size: 1.1rem;
    }
    .hero-content {
        max-width: 90%;
    }

    /* Footer & Grid */
    .products-container {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .social-links {
        justify-content: center;
    }
    .footer-contact p {
        justify-content: center;
    }

    /* Cart Drawer */
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

/* --- Admin Dashboard Overhaul --- */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f4f7fb;
}

.admin-sidebar {
    width: 260px;
    background: #ffffff;
    color: #475569;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid #e2e8f0;
}

.admin-sidebar-header {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.admin-sidebar-header img {
    height: 30px;
    margin-bottom: 5px;
    object-fit: contain;
}

.admin-sidebar-nav {
    flex: 1;
    padding: 1.5rem 1rem;
    overflow-y: auto;
}

.admin-sidebar-nav::-webkit-scrollbar {
    display: none;
}
.admin-sidebar-nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.admin-sidebar-nav a i {
    width: 25px;
    margin-right: 12px;
    text-align: center;
    font-size: 1.1rem;
    color: #94a3b8;
}

.admin-sidebar-nav a:hover,
.admin-sidebar-nav a.active {
    color: #0f172a;
    background: #f1f5f9;
}

.admin-sidebar-nav a:hover i,
.admin-sidebar-nav a.active i {
    color: #0f172a;
}

.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background: #f4f7fb;
}

.admin-header {
    background: #f4f7fb;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-content {
    padding: 2rem;
    flex: 1;
}

.admin-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.admin-table th {
    font-weight: 600;
    color: #64748b;
    border-bottom: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 1rem;
}

.admin-table td {
    padding: 1rem;
    vertical-align: middle;
    background: white;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.admin-table tr td:first-child {
    border-left: 1px solid #f1f5f9;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.admin-table tr td:last-child {
    border-right: 1px solid #f1f5f9;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.admin-table tr:hover td {
    background: #f8fafc;
}

/* Custom Segmented Pill Tabs */
.pill-tab-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.custom-pill-nav {
    display: inline-flex;
    background-color: #e2e8f0;
    border-radius: 12px;
    padding: 5px;
    margin: 0;
    list-style: none;
}

.custom-pill-nav .nav-item {
    margin: 0;
}

.custom-pill-nav .nav-link,
.custom-pill-nav .nav-btn {
    border: none !important;
    border-radius: 8px !important;
    padding: 0.6rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #64748b;
    background: transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.custom-pill-nav .nav-link:hover,
.custom-pill-nav .nav-btn:hover {
    color: var(--text-charcoal);
}

.custom-pill-nav .nav-link.active,
.custom-pill-nav .nav-btn.active {
    background-color: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.admin-action-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.admin-btn-edit {
    background: #e9ecef;
    color: var(--text-charcoal);
}

.admin-btn-edit:hover {
    background: #dee2e6;
}

.admin-btn-delete {
    background: rgba(230, 57, 70, 0.1);
    color: var(--brand-red);
}

.admin-btn-delete:hover {
    background: var(--brand-red);
    color: white;
}

.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) {
    .admin-layout {
        flex-direction: column;
    }
    
    .mobile-toggle {
        display: block !important;
    }
    
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        height: 100vh;
        width: 280px;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 5px 0 25px rgba(0,0,0,0.1);
    }
    
    .admin-sidebar.active {
        left: 0;
    }
    
    .admin-sidebar-nav {
        display: block; /* revert the horizontal scroll */
        padding: 1.5rem 1rem;
    }
    
    .admin-sidebar-nav a {
        padding: 0.85rem 1rem;
        border: none;
        white-space: normal;
        margin-bottom: 0.5rem;
    }
    
    .admin-sidebar-nav a:hover,
    .admin-sidebar-nav a.active {
        border: none;
        background: #f1f5f9;
        color: #0f172a;
    }
    
    .admin-header {
        padding: 1rem;
    }
    
    .admin-content {
        padding: 1rem;
    }
    
    .d-none.d-sm-inline {
        display: none !important;
    }
}

/* Custom Scroller */
.custom-scroller::-webkit-scrollbar {
    width: 6px;
}
.custom-scroller::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 10px;
}
.custom-scroller::-webkit-scrollbar-thumb {
    background: #c1c1c1; 
    border-radius: 10px;
}
.custom-scroller::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8; 
}
