/* ==========================================================================
   1. CSS VARIABLES, RESET & BASE STYLES
   ========================================================================== */
:root {
    --primary-color: #31abe5;     /* Medical Blue */
    --secondary-color: #e3f2fd;   /* Soft Light Blue */
    --accent-color: #7ab61d;      /* Fresh Green Accent */
    --dark-color: #1a365d;        /* Deep Navy Blue */
    --light-color: #f4f9fc;       /* Clean Light Background */
    --text-color: #333333;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1 0 auto;
    width: 100%;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 40px 0;
}

.section-p1 {
    padding: 40px 80px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.section-highlight {
    animation: highlightPulse 1.2s ease-in-out;
}

.highlight-text {
    color: var(--primary-color);
    font-weight: 700;
}

/* Third-Party FontAwesome Helper */
.fas, .fab, .fa-solid, .fa-regular, .fa-brands {
    display: inline-block;
}

/* Generic Buttons */
.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary { background-color: #3b82f6; color: #ffffff; }
.btn-primary:hover { background-color: #2563eb; }

.btn-danger { background-color: #ef4444; color: #ffffff; }
.btn-danger:hover { background-color: #dc2626; }

.btn-block { width: 100%; }
.flex-btn { flex: 1; }


/* ==========================================================================
   2. KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes highlightPulse {
    0% { background-color: rgba(49, 171, 229, 0.15); }
    100% { background-color: transparent; }
}

/* Spinner Animation for Loaders */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s infinite linear;
}


/* ==========================================================================
   3. NAVIGATION BAR & SITE HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar {
    position: fixed;
    top: 15px;
    left: 50%;
    z-index: 1000;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px) saturate(1.8);
    -webkit-backdrop-filter: blur(12px) saturate(1.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

/* 3-Column Strict Centered Nav Container */
.nav-container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    flex: 1;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 5px;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
}

.nav-products {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-products a,
.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-products a:hover,
.nav-products a.active,
.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--accent-color);
}

.nav-products a.active::after,
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link::after {
    bottom: 0;
    width: 0;
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
    width: 100%;
}

.cart-btn {
    position: relative;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: var(--transition);
}

.cart-btn:hover {
    color: var(--accent-color);
}

.cart-icon {
    display: inline-block;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hamburger Mechanics */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-btn span,
.hamburger-btn .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.hamburger-btn.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    background-color: var(--accent-color);
}

.hamburger-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    background-color: var(--accent-color);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* ==========================================================================
   4. CART SYSTEM (SIDEBAR DRAWER & STANDALONE PAGE)
   ========================================================================== */
.cart-sidebar-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
}

.cart-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 3001;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(15, 23, 42, 0.15);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.cart-sidebar.active,
.cart-sidebar.open {
    transform: translateX(0);
}

.cart-sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}

.cart-sidebar-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cart-sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: -0.01em;
    margin: 0;
}

.cart-item-count-badge {
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}

.cart-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.clear-cart-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.clear-cart-btn:hover {
    color: #ef4444;
    background: #fee2e2;
}

.close-sidebar-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    font-size: 1.1rem;
    color: #64748b;
    cursor: pointer;
    transition: var(--transition);
}

.close-sidebar-btn:hover {
    background: #e2e8f0;
    color: var(--dark-color);
    transform: rotate(90deg);
}

.cart-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: #fbfcfe;
}

.cart-sidebar-body::-webkit-scrollbar {
    width: 5px;
}
.cart-sidebar-body::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: var(--transition);
}

.cart-item:hover {
    border-color: rgba(49, 171, 229, 0.35);
    box-shadow: 0 6px 18px rgba(49, 171, 229, 0.08);
}

.cart-item-img,
.cart-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--light-color);
    border: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-info .product-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    text-align: left;
}

.cart-item-info .product-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.quantity-wrapper {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 20px;
    padding: 2px 4px;
    gap: 0.2rem;
}

.cart-item .qty-btn,
.cart-item .quantity-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: var(--dark-color);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.cart-item .qty-btn:hover,
.cart-item .quantity-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.cart-item .quantity {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark-color);
    min-width: 18px;
    text-align: center;
}

.cart-item-actions .line-total {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-color);
}

.cart-item .remove-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 2px;
    transition: var(--transition);
}

.cart-item .remove-btn:hover {
    color: #ef4444;
}

.cart-sidebar-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #64748b;
}

.total-row {
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
}

.total-row span {
    font-size: 1.05rem;
    color: var(--dark-color);
    font-weight: 700;
}

.total-row strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-color);
}

.cart-actions-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(49, 171, 229, 0.35);
    transition: var(--transition);
}

.checkout-btn:hover {
    background: #2394cb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 171, 229, 0.45);
}

.view-cart-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1.2rem;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: var(--transition);
}

.view-cart-btn:hover {
    background: #edf2f7;
    color: var(--dark-color);
}

/* Standalone Cart Page Layout */
.cart-container {
    max-width: 1440px;
    margin: 120px auto 5rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
}

.cart-items-section h2,
.cart-summary-section h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-page-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-page-card {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.cart-page-card:hover {
    border-color: rgba(49, 171, 229, 0.4);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.cart-page-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
}

.cart-page-item-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.cart-page-item-info .unit-price {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.cart-page-item-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-page-item-actions .line-total {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-color);
    min-width: 90px;
    text-align: right;
}

.cart-summary-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 110px;
}

.summary-divider {
    border: 0;
    border-top: 1px solid #f1f5f9;
    margin: 1.25rem 0;
}

.continue-shopping {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.continue-shopping:hover {
    color: var(--primary-color);
}

.empty-cart-section,
.empty-cart {
    text-align: center;
    padding: 4rem 1.5rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}

.empty-cart-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem auto;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.empty-cart-msg {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.empty-cart-subtext {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.cart-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--dark-color);
    color: #ffffff;
    padding: 0.9rem 1.4rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    font-weight: 500;
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Sidebar Cart Card Enhancements */
.cart-sidebar-body .cart-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.cart-sidebar-body .cart-item-img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.cart-sidebar-body .cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-sidebar-body .cart-item-info .product-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 2px 0;
}

.cart-sidebar-body .cart-item-info .product-price {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.cart-sidebar-body .cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}

.cart-sidebar-body .line-total {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-color, #31abe5);
}

.cart-sidebar-body .remove-btn {
    color: #94a3b8;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.cart-sidebar-body .remove-btn:hover {
    color: #ef4444;
}


/* ==========================================================================
   5. AUTHENTICATION & ACCOUNT PAGES
   ========================================================================== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px 20px;
    background: #f4f9fc;
}

.account-wrapper {
    padding: 120px 20px 60px 20px;
    background: #f4f9fc;
    min-height: 80vh;
}

.login-card {
    background: #ffffff;
    width: 100%;
    max-width: 950px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    display: flex;
    overflow: hidden;
    border: 1px solid #eef2f5;
}

.account-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2f5;
}

.form-side {
    flex: 1.2;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-side {
    flex: 1;
    background: linear-gradient(135deg, #1a365d 0%, #0f2342 100%);
    color: white;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.form-header h2 {
    font-size: 2rem;
    color: var(--dark-color, #1a365d);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #666666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.account-header {
    text-align: center;
    margin-bottom: 2rem;
}

.account-header h2 {
    font-size: 1.8rem;
    color: var(--dark-color, #1a365d);
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.account-header p {
    color: #666666;
    font-size: 0.95rem;
}

.account-avatar {
    width: 70px;
    height: 70px;
    background: var(--secondary-color, #e3f2fd);
    color: var(--primary-color, #31abe5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto;
}

.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.brand-logo-container img {
    height: 38px;
    border-radius: 6px;
}

.brand-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color, #31abe5);
}

.brand-tagline {
    font-size: 0.9rem;
    color: #cbd5e0;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.brand-footer {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-top: 2rem;
}

.input-field-group {
    margin-bottom: 1.25rem;
}

.input-field-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444444;
    margin-bottom: 0.4rem;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label-required {
    color: #333333;
}

.label-optional {
    font-size: 0.8rem;
    font-weight: 400;
    color: #64748b;
}

.forgot-link {
    font-size: 0.85rem;
    color: var(--primary-color, #31abe5);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.input-control-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-control-wrapper i {
    position: absolute;
    left: 1rem;
    color: #a0aec0;
    font-size: 1rem;
}

.modern-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.modern-input:focus {
    border-color: var(--primary-color, #31abe5);
    box-shadow: 0 0 0 3px rgba(49, 171, 229, 0.15);
}

.form-divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 1.5rem 0;
}

.submit-btn {
    width: 100%;
    background: var(--primary-color, #31abe5);
    color: white;
    border: none;
    padding: 0.9rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background: #2394cb;
    transform: translateY(-1px);
}

.account-save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.social-section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a0aec0;
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-btn-group,
.social-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.social-btn i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.social-icon-google { color: #ea4335; }
.social-icon-microsoft { color: #00a4ef; }

.alert-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background-color: #fde8e8;
    color: #e53e3e;
    border: 1px solid #f8b4b4;
}

.alert-success {
    background-color: #def7ec;
    color: #03543f;
    border: 1px solid #bcf0da;
}

.form-footer-link {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #666666;
}

.form-footer-link a {
    color: var(--primary-color, #31abe5);
    font-weight: 600;
    text-decoration: none;
}

.form-footer-link a:hover {
    text-decoration: underline;
}

.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    max-width: 480px;
    margin: 100px auto 3rem auto;
    background: linear-gradient(135deg, var(--light-color) 0%, #f8f4e5 100%);
}

.auth-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.8rem;
}

.auth-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 700;
}

.auth-subtitle {
    text-align: center;
    color: #64748b;
    margin-top: 0.4rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.8rem 0;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider span {
    padding: 0 0.75rem;
}

.auth-footer-link {
    margin-top: 1.8rem;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

.auth-footer-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer-link a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   6. PRODUCTS PAGE, HERO, WIDE WORKSPACE & RESPONSIVE TOOLBAR
   ========================================================================== */
.products-hero {
    position: relative;
    width: 100%;
    min-height: 260px;
    padding: clamp(90px, 12vw, 130px) 20px clamp(40px, 6vw, 60px) 20px;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(15, 23, 42, 0.85) 100%), 
                url('img/FrontPage.jpeg') center/cover no-repeat;
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.products-hero-content h1 {
    margin-top: 10px;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.products-hero-content p {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.products-page-wrapper {
    max-width: 1440px;
    width: 95%;
    margin: 0 auto;
    padding: 30px 10px;
}

.admin-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dark-color);
    border: 1px solid #e2e8f0;
    padding: 14px 24px;
    border-radius: 12px;
    margin-bottom: 25px;
    width: 100%;
}

.admin-badge {
    font-weight: 600;
    color: #ffffff;
}

.admin-controls-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-btn, .admin-add-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.admin-add-btn {
    background-color: #3b82f6;
}

.admin-btn:hover, .admin-add-btn:hover {
    transform: translateY(-1px);
}

.admin-check-btn { background-color: #22c55e; }
.admin-check-btn:hover { background-color: #16a34a; }

/* Dedicated Loading Styles for Save Changes Button */
.admin-check-btn.saving-active {
    background-color: #059669 !important;
    opacity: 0.9;
    cursor: wait !important;
    pointer-events: none;
    padding: 0 14px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}

.admin-trash-btn { background-color: #ef4444; }
.admin-trash-btn:hover { background-color: #dc2626; }

.admin-trash-btn.active {
    background-color: #991b1b;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.switch-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.switch-container input {
    display: none;
}

.switch-slider {
    width: 38px;
    height: 20px;
    background-color: #cbd5e1;
    border-radius: 20px;
    position: relative;
    transition: background-color 0.2s ease;
}

.switch-slider::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #ffffff;
    top: 3px;
    left: 3px;
    transition: transform 0.2s ease;
}

.switch-container input:checked + .switch-slider {
    background-color: #3b82f6;
}

.switch-container input:checked + .switch-slider::before {
    transform: translateX(18px);
}

.switch-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
}

.admin-edit-active .admin-edit-only.edit-product-btn,
.admin-edit-active .admin-add-btn.admin-edit-only,
.admin-edit-active .admin-trash-btn.admin-edit-only,
.admin-edit-active .admin-check-btn.admin-edit-only {
    display: flex !important;
}

.card-delete-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 25;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ef4444;
    display: none;
}

.multi-delete-active .card-delete-checkbox {
    display: block !important;
}

.product-card.staged-for-deletion {
    opacity: 0.4;
    filter: grayscale(80%);
    border: 2px solid #ef4444 !important;
}

/* Desktop Toolbar: Search First (Left), Filters Beside Each Other (Right) */
.products-toolbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.toolbar-search-row {
    flex: 1;
    min-width: 240px;
}

.toolbar-filters-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-shrink: 0;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.search-box-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-box-wrapper input,
.toolbar-search-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box-wrapper input:focus,
.toolbar-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(49, 171, 229, 0.15);
}

.toolbar-select {
    padding: 9px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}

/* 4-Column Page Product Grid Layout */
.products-modern-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.product-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background: #f8fafc;
    overflow: hidden;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badges-wrapper {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 10;
    pointer-events: none;
}

.card-overlay-btn {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: bottom 0.2s ease;
    z-index: 12;
}

.product-card:hover .card-overlay-btn {
    bottom: 0;
}

/* Badges Outside Modal: Compact Stamp Styles */
.product-card .product-badge {
    position: static;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    line-height: 1.2;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.product-badge {
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
}

.badge-category {
    background-color: #3b82f6;
}

.badge-sale { background-color: #10b981; }
.badge-out { background-color: #64748b; }
.badge-featured { background-color: #ef4444; }

.product-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.4;
    text-align: center;
    width: 100%;
}

.product-price-container {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Stock Indicator Outside Modal */
.stock-indicator {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: left;
}

.stock-indicator.in { 
    color: #16a34a; 
}

/* Explicit red styling for low and out of stock outside the modal */
.stock-indicator.out,
.stock-indicator.low { 
    color: #ef4444 !important; 
    font-weight: 700;
}

.price-side-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-align: right;
}

.product-price, .sale-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.original-price {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.modal-price-sale {
    color: #10b981 !important;
}


/* ==========================================================================
   7. MODAL WINDOWS & FORMS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    padding: clamp(1.25rem, 3vw, 2rem);
    position: relative;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.modal-card.modal-wide {
    max-width: 820px;
}

.modal-card::-webkit-scrollbar {
    width: 6px;
}

.modal-card::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.75rem;
    flex-shrink: 0;
}

.modal-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.modal-dynamic-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark-color);
    margin: 0;
    line-height: 1.2;
}

.modal-close-btn {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: #e2e8f0;
    color: #ef4444;
    transform: rotate(90deg);
}

/* Modal Grid Layout */
.modal-two-col {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
    align-items: stretch;
    flex-grow: 1;
}

.modal-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.preview-col {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
}

.modal-featured-img {
    width: 100%;
    height: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 12px;
    border: none;
    display: block;
}

/* Public Details Typography */
.modal-details-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

/* Inline Badges formatting with center dot */
.modal-badges-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.modal-badges-inline > span:not(:first-child)::before {
    content: "•";
    margin-right: 0.6rem;
    color: #94a3b8;
    display: inline-block;
}

.modal-badges-inline .product-badge {
    position: static;
    padding: 2px 6px;
    font-size: 0.75rem;
}

.category-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #3b82f6;
    letter-spacing: 0.5px;
}

.description-card {
    background: #f8fafc;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin: 0.25rem 0;
    flex-grow: 1;
}

.description-card h4 {
    margin-bottom: 4px;
    font-size: 0.82rem;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
}

.description-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.45;
}

.modal-stock-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-bottom: 0.25rem;
}

.modal-stock-text {
    font-size: 0.88rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.modal-stock-red {
    color: #ef4444 !important;
    font-weight: 700;
}

/* Modal Pricing Layout */
.modal-price-box {
    margin-top: 0;
    padding-bottom: 0;
    border-bottom: none;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    justify-content: flex-end;
    width: auto;
}

/* Action Rows */
.modal-action-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
}

.qty-controls {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 2px 4px;
    gap: 0.35rem;
    height: 42px;
    flex-shrink: 0;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: #ffffff;
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.qty-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-color);
    min-width: 24px;
    text-align: center;
}

/* Admin Form Spacing & Alignment */
.form-group {
    margin-bottom: 0.85rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #475569;
}

.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    font-size: 0.9rem;
    transition: var(--transition);
    height: 41px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(49, 171, 229, 0.15);
}

textarea.form-control {
    height: auto;
    resize: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: end;
    margin-bottom: 0.85rem;
}

.form-row.align-center-row {
    align-items: end;
}

.form-group.half {
    min-width: 0;
    margin-bottom: 0;
}

/* Admin Toggles inside Modal */
.modal-card .switch-container.admin-switch-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0 12px;
    border-radius: 8px;
    width: 100%;
    height: 41px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    box-sizing: border-box;
}

.modal-card .switch-container.admin-switch-container .switch-label {
    color: #334155;
    font-weight: 600;
    font-size: 0.85rem;
}

.switch-wrapper {
    display: inline-block;
    position: relative;
}

.switch-wrapper input {
    display: none;
}

.switch-wrapper .switch-slider {
    display: block;
    width: 38px;
    height: 20px;
    background-color: #cbd5e1;
    border-radius: 20px;
    position: relative;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.switch-wrapper .switch-slider::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #ffffff;
    top: 3px;
    left: 3px;
    transition: transform 0.2s ease;
}

.switch-wrapper input:checked + .switch-slider {
    background-color: #3b82f6;
}

.switch-wrapper input:checked + .switch-slider::before {
    transform: translateX(18px);
}

.form-actions-bottom {
    margin-top: 1rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.85rem;
    display: flex;
    gap: 12px;
}

/* Dropzone Overhaul */
.compact-drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 0.85rem;
    text-align: center;
    position: relative;
    background: #f8fafc;
    cursor: pointer;
    transition: var(--transition);
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compact-drop-zone:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
}

.drop-zone-prompt p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

.drop-zone-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.drop-zone-preview {
    max-height: 95px;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 6px;
    position: relative;
    z-index: 1;
    object-fit: contain;
}


/* ==========================================================================
   8. CHECKOUT PAGE STYLES
   ========================================================================== */
.redirect-title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.redirect-text {
    font-size: 0.95rem;
    color: #666666;
    margin-bottom: 1.25rem;
}

.redirect-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.6rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.redirect-btn:hover {
    background: var(--accent-color);
}

.redirect-icon-wrapper {
    font-size: 2.75rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.countdown-timer {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-color);
}


/* ==========================================================================
   9. FOOTER STYLES
   ========================================================================== */
footer,
footer.section-p1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 32px 24px;
    background-color: var(--dark-color);
    color: white;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: auto;
    padding: 60px 40px 24px 40px;
    box-sizing: border-box;
    font-family: inherit;
    text-align: center;
}

/* Footer Headings */
footer h4 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.5px;
    margin: 0 0 18px 0;
    padding-bottom: 6px;
}

/* Column Layout */
footer .col,
.col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 200px;
    min-width: 200px;
    margin: 0;
    padding: 0;
}

/* Paragraphs & Text */
footer p {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 10px 0;
    color: #dddddd;
}

footer p strong {
    font-weight: 600;
    margin-right: 4px;
}

/* Links & Nav Items */
footer a {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    color: #dddddd;
    margin-bottom: 10px;
    padding: 2px 0;
    display: inline-block;
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    transform: translateX(4px);
}

/* Contact Specific Links */
footer .Email {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0;
    padding: 0;
}

footer .Email:hover {
    color: var(--primary-color);
    text-decoration: underline;
    transform: none;
}

/* Social Icons & Follow Section */
.footer-sub-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 25px;
    width: 100%;
}

footer .icon,
.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 1.25rem;
    margin-top: 4px;
    margin-bottom: 14px;
    padding: 2px 0;
}

footer .icon a {
    color: #ffffff;
    transition: var(--transition);
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

footer .icon a:hover {
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
}

/* Career Callout in Footer */
.apply-now-btn {
    display: inline-block;
    background-color: #007bff;
    color: #ffffff !important;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 10px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.apply-now-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Payment Badges & Layout */
.payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
}

.cod-logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    line-height: 1;
    height: 32px;
    box-sizing: border-box;
    white-space: nowrap;
}

/* Bottom Logo & Copyright Area */
.footer-bottom-bar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.footer-logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    padding-top: 8px;
}

.footer-bottom-logo {
    display: block;
    border-radius: 5px;
    transition: var(--transition);
}

.footer-bottom-logo:hover {
    transform: scale(1.05);
}

footer .copyright,
.copyright {
    width: 100%;
    text-align: center;
    padding-top: 18px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .copyright p {
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.3px;
    margin: 0;
}

/* ==========================================================================
   10. WHATSAPP FLOATING BUTTON
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 58px;
    height: 58px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    z-index: 1500;
    text-decoration: none;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, bottom 0.15s ease-out;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

.whatsapp-float i {
    line-height: 1;
    display: inline-block;
}

/* ==========================================================================
   12. ADMIN PANEL WORKSPACE
   ========================================================================== */
.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.admin-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}
.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}
.admin-stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}
.bg-blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.bg-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.bg-purple { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.bg-orange { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

.admin-table-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.admin-table th {
    background: #f8fafc;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    text-transform: uppercase;
}
.admin-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}
.admin-table tr:hover td {
    background: #f8fafc;
}
.admin-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
}
.status-pending { background: #fef3c7; color: #d97706; }
.status-processing { background: #e0e7ff; color: #6d28d9; }
.status-completed { background: #d1fae5; color: #059669; }
.status-cancelled { background: #fee2e2; color: #dc2626; }

.advanced-section {
    display: none;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed #cbd5e1;
}

/* ==========================================================================
   11. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media screen and (max-width: 1200px) {
    .products-modern-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

@media screen and (max-width: 950px) {
    .hamburger-btn {
        display: flex;
    }

    .nav-center {
        display: none;
    }

    .nav-products {
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        width: 75%;
        max-width: 280px;
        flex-direction: column;
        gap: 0;
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        padding: 0.5rem 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
        pointer-events: none;
        z-index: 1001 !important;
    }

    .nav-products.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }

    .nav-products li,
    .nav-products a {
        width: 100%;
        text-align: center;
        display: block;
    }

    .nav-products a {
        padding: 0.65rem 1rem;
        font-size: 1rem;
    }

    .nav-products a.active::after {
        display: none;
    }
}

@media screen and (max-width: 900px) {
    .cart-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cart-summary-section {
        position: static;
    }

    .login-card {
        flex-direction: column;
    }

    .brand-side {
        order: -1;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .products-modern-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Mobile & Tablet Adaptation */
@media screen and (max-width: 768px) {
    .login-wrapper {
        padding: 100px 15px 40px 15px;
    }

    .form-side,
    .brand-side {
        padding: 2rem 1.5rem;
    }

    .page-header {
        padding-top: 100px;
        padding-bottom: 2.5rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .products-toolbar {
        flex-direction: column;
        gap: 12px;
        padding: 14px;
    }

    .toolbar-search-row {
        width: 100%;
        flex: none;
    }

    .toolbar-filters-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .toolbar-left,
    .toolbar-right {
        width: 100%;
        display: flex;
        align-items: center;
    }

    .toolbar-left .filter-group,
    .toolbar-right .filter-group {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .toolbar-select {
        flex: 1;
        width: 100%;
    }

    footer.section-p1 {
        padding: 44px 20px 24px 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 28px;
    }

    footer .col {
        min-width: 100%;
        margin-right: 0;
        margin-bottom: 0;
        text-align: center;
        align-items: center;
    }

    footer h4 {
        margin-bottom: 12px;
    }

    .footer-sub-section {
        align-items: center;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }

    #view-product-modal .modal-card {
        padding: 1.25rem;
        min-height: 88vh;
        min-height: 88dvh;
        max-height: 96vh;
        max-height: 96dvh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    #view-product-modal .modal-two-col {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    #view-product-modal .preview-col {
        height: 280px;
        max-height: 280px;
        min-height: 260px;
        width: 100%;
        background: transparent;
        border-radius: 12px;
        overflow: hidden;
        flex-shrink: 0;
    }

    #view-product-modal .modal-featured-img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        border-radius: 12px;
    }

    #view-product-modal .details-col {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    #view-product-modal .description-card {
        margin: 0.35rem 0;
        padding: 0.75rem 0.85rem;
        flex-grow: 1;
    }

    #view-product-modal .description-card p {
        font-size: 0.88rem;
        line-height: 1.4;
    }

    #view-product-modal .modal-stock-price-row {
        padding-bottom: 0.35rem;
    }

    #view-product-modal .modal-action-row {
        flex-direction: row;
        align-items: center;
        margin-top: 0.35rem;
        padding-top: 0.65rem;
    }
}

@media screen and (max-width: 600px) {
    .cart-page-card {
        grid-template-columns: 65px 1fr;
        gap: 0.85rem;
        padding: 0.85rem;
    }

    .cart-page-item-actions {
        grid-column: span 2;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid #f1f5f9;
        padding-top: 0.65rem;
        margin-top: 0.2rem;
    }

    .cart-page-item-actions .line-total {
        text-align: right;
    }
    
    .products-modern-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media screen and (max-width: 480px) {
    .cart-sidebar {
        max-width: 100%;
    }

    .cart-item-img {
        width: 68px;
        height: 68px;
    }

    .cart-sidebar-header {
        padding: 1.2rem 1rem;
    }

    .cart-sidebar-footer {
        padding: 1rem;
    }

    .nav-container {
        padding: 0.5rem 1rem;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .compact-contact-form {
        grid-template-columns: 1fr;
    }
    
    .compact-contact-form .form-group-full {
        grid-column: span 1;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-title {
        font-size: 0.9rem;
    }
}