/* ============================================================
   TAILS UP � site.css
   Brand: Black header, Lime green nav, Grey body
   ============================================================ */

:root {
    --black: #040404;
    --lime: #d4f300;
    --lime-dark: #AADD00;
    --grey-bg: #C8C8C8;
    --white: #FFFFFF;
    --text-dark: #222222;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Barlow', sans-serif;
    --header-height: 108px; /* top-bar (~64px) + main-nav (~44px) — tweak if needed */
}

/* ============================================================
   PROMOTIONAL BANNER
   ============================================================ */
.promo-banner {
    background: #040404d1;
    color: var(--lime);
    padding: 12px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.promo-banner i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.promo-banner span {
    display: inline-block;
    letter-spacing: 0.5px;
}

@media (max-width: 576px) {
    .promo-banner {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .promo-banner i {
        margin-right: 6px;
        font-size: 1rem;
    }
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-body);
    background-color: var(--grey-bg);
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================================
   HEADER � Top black bar
   ============================================================ */
.top-bar {
    background-color: var(--black);
    color: var(--white);
    padding: 0;
}

.top-bar .container {
    padding-top: 12px;
    padding-bottom: 12px;
}

.brand {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--white);
    letter-spacing: 2px;
    text-decoration: none;
    width: 15vw;
}

.brand-icon {
    color: var(--lime);
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    padding: 4px 10px;
    gap: 6px;
}

.search-box input {
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    width: 220px;
}

/* ============================================================
   NAV � Lime green bar
   ============================================================ */
.main-nav {
    background-color: var(--lime);
    padding: 8px;
}
.search_icon {
    color: var(--black) !important;
    justify-content: flex-end;
    border: 1px solid var(--color-white-bg);
    height: 36px;
    width: 44px;
    border-radius: 8px;
    cursor: pointer;
}
.main-nav a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--black);
    padding: 4px 0;
    transition: opacity 0.2s;
}

.main-nav a:hover {
    opacity: 0.7;
}

/* ============================================================
   CART PILL
   ============================================================ */
.cart-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
}

.cart-pill i {
    font-size: 1rem;
    color: var(--black);
}

.btn-view-cart:hover {
    background-color: var(--lime-dark);
}

/* ============================================================
   LOGGED IN HEADER
   ============================================================ */
.top-bar-logged {
    background-color: var(--black);
    color: var(--white);
    padding: 14px 0;
}

.top-bar-logged .container {
    gap: 16px;
}

.top-bar-logged a {
    color: var(--lime);
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.top-bar-logged a:hover {
    opacity: 0.7;
    width: 40vw;
}

.welcome-text {
    color: #aaa;
    font-size: 0.9rem;
}

/* ============================================================
   PROFILE DROPDOWN
   ============================================================ */
.profile-dropdown-container {
    position: relative;
}

.btn-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--lime);
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-size: 0.95rem;
}

.btn-profile:hover {
    background-color: rgba(212, 243, 0, 0.15);
}

.btn-profile i:first-child {
    font-size: 1.3rem;
}

.btn-profile i:last-child {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.profile-dropdown-menu.active .btn-profile i:last-child {
    transform: rotate(180deg);
}

.profile-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: none;
    border-radius: 6px;
    box-shadow: none;
    min-width: 220px;
    margin-top: 8px;
    padding: 0;
    z-index: 1001;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, border 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    visibility: hidden;
}

.profile-dropdown-menu.active {
    max-height: calc(100vh - 120px);   /* tall enough for the full admin menu incl. Logout */
    overflow-y: auto;
    border: 1px solid #ddd;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    visibility: visible;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: var(--lime-dark);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

.dropdown-divider {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #eee;
}

.dropdown-item.logout {
    color: #dc3545;
}

.dropdown-item.logout:hover {
    background-color: #ffe0e0;
    color: #c82333;
}

.btn_header {
    background: var(--black);
    color: var(--lime);
    border: 2px solid var(--lime);
    transition: background-color 0.5s ease;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
}

.btn_header:hover {
    background-color: var(--lime-dark);
    color: var(--black);
}

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content {
    flex: 1;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    background-color: var(--white);
    padding: 48px 16px 32px;
    border-bottom: 3px solid var(--lime);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    letter-spacing: 2px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.hero p {
    font-size: 1rem;
    color: #555;
}

.hero p a {
    color: var(--black);
    font-weight: 700;
    text-decoration: underline;
}

/* ============================================================
   LOGIN SECTION
   ============================================================ */
.login-section {
    padding: 40px 16px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.login-card {
    background: var(--white);
    border-radius: 8px;
    padding: 40px;
    max-width: 440px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    animation: slideInUp 0.3s ease;
}

.login-card h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 24px;
    letter-spacing: 1px;
    color: var(--text-dark);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--lime-dark);
    box-shadow: 0 0 0 3px rgba(212, 243, 0, 0.15);
}

.form-input.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-input.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.validation-message {
    color: #cc0000;
    font-size: 0.85rem;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 6px;
    font-weight: 500;
}

/* Alert Styles */
.alert {
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    border: 1px solid;
    animation: slideDown 0.3s ease;
}

.alert {
    margin-bottom: 24px;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-danger h3 {
    color: #721c24;
    font-size: 16px;
    margin-bottom: 12px;
}

.alert-danger ul {
    padding-left: 20px;
}

.alert-danger li {
    margin-bottom: 8px;
    font-weight: 500;
}

.alert-danger li:last-child {
    margin-bottom: 0;
}

.alert-danger i {
    margin-right: 8px;
}

.alert-danger strong {
    font-weight: 600;
}

.alert-danger .mt-2 {
    margin-top: 12px;
    font-size: 0.9rem;
}

.alert-danger .mt-2 div {
    margin-bottom: 6px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.btn-close {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #721c24;
    opacity: 0.7;
}

.btn-close:hover {
    opacity: 1;
}

/* Login Form Specific */
.mb-3 {
    margin-bottom: 20px;
}

.login-footer {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.login-link {
    color: var(--lime-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.login-link:hover {
    color: var(--lime);
    text-decoration: underline;
}

.login-error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

.login-error i {
    font-size: 1.2rem;
}

/* Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-submit {
    width: 100%;
    background-color: var(--lime);
    color: var(--black);
    border: none;
    padding: 14px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 2px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 8px;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: var(--lime-dark);
}

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.products-section {
    padding: 40px 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: var(--white);
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-img-placeholder {
    width: 100%;
    height: 160px;
    background: #ddd;
    border-radius: 4px;
    margin-bottom: 12px;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    min-height: 40px;
}

.product-price {
    font-weight: 700;
    margin-bottom: 10px;
}

.btn-basket {
    background-color: var(--lime);
    color: var(--black);
    border: none;
    padding: 8px 20px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-basket:hover {
    background-color: var(--lime-dark);
}

.btn-readmore {
    background-color: var(--lime);
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-card {
    background: var(--white);
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.dash-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.dashboard-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.dashboard-card p {
    color: #666;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

/* ============================================================
   CONTENT SECTION (Privacy, Error, etc.)
   ============================================================ */
.content-section {
    padding: 40px 16px;
}

.content-card {
    background: var(--white);
    border-radius: 8px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.content-card h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.content-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 20px 0 8px;
}

.content-card p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* Terms and Conditions page */
.content-card ul, .content-card ol { color: #555; line-height: 1.7; padding-left: 22px; margin-bottom: 12px; }
.content-card li { margin-bottom: 6px; }
.content-card h3[id], .content-card p[id] { scroll-margin-top: 120px; }
.terms-updated { font-size: .9rem; font-style: italic; }
.terms-toc { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 16px 0 8px; padding: 12px 14px; background: #f5f5f5; border-radius: 8px; }
.terms-toc a { font-weight: 600; font-size: .9rem; white-space: nowrap; }
@media (max-width: 576px) { .content-card { padding: 24px 18px; } }

/* Checkout: policy summary under the terms checkbox */
.checkout-policies { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #eee; font-size: .88rem; }
.checkout-policies a { color: #555; text-decoration: none; }
.checkout-policies a:hover { text-decoration: underline; }
.checkout-policies i { width: 18px; text-align: center; margin-right: 4px; }

/* ============================================================
   SHOP PAGE (Products/Index)
   ============================================================ */
.shop-section {
    padding: 40px 16px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
}

.shop-sidebar {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: calc(var(--header-height) + 50px);
}

.sidebar-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--lime);
    padding-bottom: 6px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background-color 0.15s;
}

.category-list li a:hover {
    background-color: rgba(212, 243, 0, 0.25);
}

.category-list li a.active {
    background-color: var(--lime);
    color: var(--black);
}

/* Clearance tab (shop sidebar) – sale red to match the discount badges */
.category-list li a.clearance-link { color: #c62828; }
.category-list li a.clearance-link.active { background-color: #c62828; color: #fff; }

.category-list li a i {
    width: 18px;
    text-align: center;
}

.sidebar-search {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-search input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
}

.sidebar-search input[type="text"]:focus {
    border-color: var(--lime-dark);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.search-input-wrapper input {
    flex: 1;
}

.btn-clear-search {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
    padding: 8px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-clear-search:hover {
    color: #d32f2f;
}

.search-buttons {
    display: flex;
    gap: 8px;
}

.search-buttons button {
    flex: 1;
}

.btn-clear-filters {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-clear-filters:hover {
    background-color: #e8e8e8;
}

.shop-main {
    min-width: 0;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-header .section-title {
    text-align: left;
    margin-bottom: 0;
}

.result-count {
    color: #555;
    font-size: 0.9rem;
}

.shop-header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
}

.sort-dropdown {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: var(--white);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sort-dropdown:hover {
    border-color: var(--lime);
    box-shadow: 0 0 0 2px rgba(212, 243, 0, 0.1);
}

.sort-dropdown:focus {
    outline: none;
    border-color: var(--lime);
    box-shadow: 0 0 0 2px rgba(212, 243, 0, 0.2);
}

.empty-text {
    background: var(--white);
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    color: #555;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.product-link {
    display: block;
    color: inherit;
}

.product-link:hover .product-name {
    color: var(--lime-dark);
}

.product-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 12px;
    background: #eee;
}

.product-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 2rem;
}

.product-img-placeholder.large {
    height: 360px;
    font-size: 4rem;
    border-radius: 8px;
}

/* ============================================================
   PRODUCT DETAILS PAGE
   ============================================================ */
.product-detail-card {
    background: var(--white);
    border-radius: 10px;
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .product-detail-card {
        grid-template-columns: 1fr;
    }
}

.product-detail-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
    background: #eee;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
}

.breadcrumb-link {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: inline-block;
}

.breadcrumb-link:hover {
    color: var(--lime-dark);
}

.product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.product-category-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--lime);
    color: var(--black);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 12px;
    width: fit-content;
}

.product-detail-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--lime);
    color: var(--black);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 12px;
    width: fit-content;
    margin-bottom: 12px;
}

.product-detail-name {
    font-family: var(--font-display);
    font-size: 2.2rem;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.1;
}

.product-detail-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.product-detail-short {
    color: #333;
    margin-bottom: 12px;
}

.product-detail-desc {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.stock-text {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.stock-in {
    color: #2e7d32;
    font-weight: 700;
}

.stock-out {
    color: #c62828;
    font-weight: 700;
}

.add-to-cart-form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}

.add-to-cart-form label {
    font-weight: 700;
}

.qty-input {
    width: 70px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    text-align: center;
    outline: none;
}

.qty-input.small {
    width: 60px;
    padding: 6px;
    font-size: 0.9rem;
}

.qty-input:focus {
    border-color: var(--lime-dark);
}

.add-to-cart-form .btn-submit {
    flex: 1;
    min-width: 180px;
    margin-top: 0;
}

/* ============================================================
   PRODUCT OPTIONS
   ============================================================ */
.product-options-section {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid var(--lime);
}

.options-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 1rem;
}

.product-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.option-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 12px 16px;
    background: var(--white);
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.option-button:hover:not([disabled]) {
    border-color: var(--lime-dark);
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 243, 0, 0.2);
}

.option-button.active {
    background: var(--lime);
    border-color: var(--lime-dark);
    color: var(--black);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(212, 243, 0, 0.3);
}

.option-button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.option-button[disabled]:hover {
    background: #f5f5f5;
    transform: none;
}

.option-name {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.option-price {
    display: block;
    font-size: 0.85rem;
    color: #28a745;
    font-weight: 600;
    margin-bottom: 2px;
}

.option-stock {
    display: block;
    font-size: 0.8rem;
    color: #999;
}

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-card {
    background: var(--white);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.cart-table thead th {
    text-align: left;
    font-family: var(--font-display);
    letter-spacing: 1px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--lime);
}

.cart-table tfoot td {
    border-top: 2px solid var(--lime);
    border-bottom: none;
    font-size: 1.05rem;
}

.qty-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-link-small {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
}

.btn-link-small:hover {
    color: var(--lime-dark);
}

.btn-link-small.danger {
    color: #c62828;
    text-decoration: none;
    font-size: 1rem;
}

.btn-link-small.danger:hover {
    color: #8e0000;
}

.cart-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.checkout-btn {
    margin-left: auto;
    min-width: 220px;
    margin-top: 0;
    opacity: 0.85;
}

.checkout-btn:disabled {
    cursor: not-allowed;
    background-color: var(--lime-dark);
}

.btn-clear {
    background-color: #eee;
    color: #555;
}

.btn-clear:hover {
    background-color: #ddd;
}

.checkout-note {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #888;
    text-align: right;
}

.cart-pill {
    cursor: pointer;
    text-decoration: none;
}

.cart-pill:hover {
    background-color: #f5f5f5;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background-color: var(--black);
    color: var(--white);
    font-size: 0.9rem;
    margin-top: auto;
}

footer a {
    color: var(--lime);
    font-weight: 600;
}

footer a:hover {
    opacity: 0.8;
}


/* ============================================================
   FILTER PANEL (Shop Page)
   ============================================================ */
.filter-panel-wrapper {
    margin-bottom: 2rem;
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    justify-content: flex-start;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

.filter-toggle-btn:hover {
    background-color: #efefef;
}

.filter-toggle-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.filter-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #e3f2fd;
    border: 1px solid #90caf9;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #1976d2;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.filter-tag-remove {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #1976d2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: color 0.2s ease;
}

.filter-tag-remove:hover {
    color: #d32f2f;
}

.filter-tag-remove i {
    font-size: 0.75rem;
}

.filter-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fafafa;
    border: 1px solid #ddd;
    border-top: none;
}

.filter-panel.open {
    max-height: 500px;
}

.filter-form {
    padding: 1.5rem;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    user-select: none;
}

.filter-checkbox-label:hover {
    color: #333;
}

.filter-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color, #007bff);
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-filter-apply {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .filter-header {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-toggle-btn {
        width: 100%;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .filter-tags {
        width: 100%;
    }
}

/* ============================================================
   CHECKOUT & CONFIRMATION PAGES
   ============================================================ */
.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.checkout-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkout-right {
    display: flex;
    flex-direction: column;
}

.checkout-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checkout-card h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.checkout-card h3 {
    font-size: 14px;
    margin-bottom: 15px;
    color: #666;
    font-weight: 600;
}

.address-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.address-option {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.address-option:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.address-option input[type="radio"]:checked + label {
    font-weight: 600;
    color: #007bff;
}

.address-option label {
    flex: 1;
    cursor: pointer;
    margin: 0;
}

.address-selection {
    margin-bottom: 20px;
}

.address-selection p {
    margin-bottom: 15px;
    font-weight: 500;
    color: #333;
}

.address-radio {
    cursor: pointer;
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--lime-dark);
}

.badge-default {
    display: inline-block;
    background-color: var(--lime);
    color: var(--black);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.address-divider {
    margin: 20px 0;
    border: none;
    border-top: 2px solid #e0e0e0;
}

.no-addresses-message {
    background-color: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #1565c0;
    font-size: 14px;
}

.no-addresses-message i {
    color: #2196F3;
    min-width: 20px;
    margin-top: 2px;
}

.required {
    color: #dc3545;
    font-weight: 600;
    margin-left: 2px;
}

.address-form {
    margin-top: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-checkbox {
    margin-right: 10px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox label {
    margin-bottom: 0;
}

.info-notice {
    background-color: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.info-notice i {
    color: #2196F3;
    min-width: 20px;
}

.info-notice p {
    margin: 0;
    color: #1565c0;
    font-size: 14px;
}

.order-summary {
    position: sticky;
    top: 20px;
}

.summary-items {
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.item-name {
    flex: 1;
}

.item-price {
    font-weight: 600;
    color: #333;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}

.summary-row .price {
    font-weight: 500;
    color: #333;
}

.summary-divider {
    margin: 15px 0;
    border: none;
    border-top: 1px solid #ddd;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.total-price {
    color: #28a745;
    font-size: 20px;
}

.free-shipping {
    color: #28a745;
    font-weight: 600;
}

.shipping-note {
    font-size: 12px;
    color: #28a745;
    margin: 10px 0 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.security-badge {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.security-badge i {
    color: #28a745;
    font-size: 20px;
}

.security-badge p {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.form-text {
    font-size: 12px;
    color: #999;
}

@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }
}

.confirmation-container {
    max-width: 900px;
    margin: 30px auto;
}

.confirmation-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.confirmation-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.success-message {
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 2px solid #28a745;
}

.success-icon {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 15px;
}

.success-message h2 {
    color: #28a745;
    margin-bottom: 10px;
    font-size: 24px;
}

.confirmation-date {
    color: #999;
    font-size: 14px;
}

.confirmation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.confirmation-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.confirmation-table th {
    background-color: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    font-size: 14px;
}

.confirmation-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.text-end {
    text-align: right;
}

.address-details {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    line-height: 1.8;
}

.address-details p {
    margin: 0;
    color: #333;
}

.status-badge {
    text-align: center;
}

.status {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.status.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status.processing {
    background-color: #cce5ff;
    color: #004085;
}

.status.shipped {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status.delivered {
    background-color: #d4edda;
    color: #155724;
}

.status-info {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.order-total {
    background-color: #f8f9fa;
}

.total-breakdown {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #ddd;
}

.total-final {
    border: none;
    padding: 15px 0;
    font-size: 16px;
    color: #28a745;
}

.next-steps {
    background-color: #f0f8f0;
    border-left: 4px solid #28a745;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps-list li {
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.steps-list li:last-child {
    border-bottom: none;
}

.confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.btn-action {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.contact-support {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    text-align: center;
}

.contact-support p {
    margin: 10px 0;
    color: #666;
}

.contact-support a {
    color: #007bff;
    text-decoration: none;
}

.contact-support a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .confirmation-grid {
        grid-template-columns: 1fr;
    }

    .confirmation-actions {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   USER ADDRESS MANAGEMENT
   ============================================================ */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.address-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.address-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--lime-dark);
}

.address-card-header {
    background: #f9f9f9;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.address-card-header h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.address-card-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-icon {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 8px;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: #2196F3;
}

.btn-icon.btn-danger:hover {
    color: #dc3545;
}

.address-card-body {
    padding: 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.address-card-body p {
    margin: 0 0 8px 0;
}

.address-card-body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .addresses-grid {
        grid-template-columns: 1fr;
    }

    .address-card-header {
        flex-direction: column;
    }

    .address-card-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ============================================================
   USER ACCOUNT PAGES
   ============================================================ */
.account-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .account-container {
        grid-template-columns: 1fr;
    }
}

.account-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #f5f5f5 0%, #f0f0f0 100%);
    padding: 20px;
    border-bottom: 2px solid var(--lime);
}

.card-header h2 {
    font-size: 18px;
    margin: 0 0 5px 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 i {
    color: var(--lime-dark);
    font-size: 20px;
}

.card-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.account-card .form-group {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.account-card .form-group:last-of-type {
    border-bottom: none;
}

.form-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.form-actions .btn-submit,
.form-actions .btn-basket {
    flex: 1;
    min-width: 150px;
    margin: 0;
}

.quick-links {
    padding: 20px;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-dark);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.quick-link-item:last-child {
    margin-bottom: 0;
}

.quick-link-item:hover {
    background-color: #f8f9fa;
    border-color: var(--lime);
    box-shadow: 0 2px 8px rgba(212, 243, 0, 0.2);
}

.quick-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--lime) 0%, var(--lime-dark) 100%);
    border-radius: 8px;
    color: var(--black);
    font-size: 24px;
}

.quick-link-content {
    flex: 1;
}

.quick-link-content h3 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
}

.quick-link-content p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.quick-link-item i:last-child {
    color: var(--lime-dark);
    font-size: 16px;
}

/* ============================================================
   ORDERS PAGE
   ============================================================ */
.orders-container {
    margin-top: 30px;
}

.empty-orders {
    background: var(--white);
    border-radius: 8px;
    padding: 60px 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.empty-orders i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.empty-orders h2 {
    color: #333;
    margin-bottom: 10px;
}

.empty-orders p {
    color: #666;
    margin-bottom: 20px;
}

.empty-orders .btn-basket {
    margin-top: 20px;
}

.orders-list {
    display: grid;
    gap: 20px;
}

.order-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.order-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #f9f9f9;
}

.order-info h3 {
    margin: 0 0 5px 0;
    color: var(--text-dark);
    font-size: 16px;
}

.order-date {
    color: #999;
    font-size: 13px;
}

.order-total {
    text-align: right;
}

.total-label {
    display: block;
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
}

.total-price {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
}

.order-status {
    padding: 0 20px 15px 20px;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-processing {
    background-color: #cce5ff;
    color: #004085;
}

.status-shipped {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-delivered {
    background-color: #d4edda;
    color: #155724;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.order-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

@media (max-width: 576px) {
    .order-details {
        grid-template-columns: 1fr;
    }
}

.detail-item {
    display: flex;
    justify-content: space-between;
}

.detail-label {
    color: #666;
    font-size: 13px;
    font-weight: 600;
}

.detail-value {
    color: var(--text-dark);
    font-weight: 600;
}

.order-footer {
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #f0f0f0;
}

.btn-view-order {
    display: inline-block;
    background-color: var(--lime);
    color: var(--black);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 14px;
}

.btn-view-order:hover {
    background-color: var(--lime-dark);
}

.account-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.account-links .btn-basket {
    margin: 0;
}

/* ============================================================
   ORDER DETAILS PAGE
   ============================================================ */
.order-details-container {
    margin-top: 30px;
}

.order-detail-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.order-detail-card .card-header {
    background: linear-gradient(135deg, #f5f5f5 0%, #f0f0f0 100%);
    padding: 20px;
    border-bottom: 2px solid var(--lime);
}

.order-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

@media (max-width: 576px) {
    .order-summary-grid {
        grid-template-columns: 1fr;
    }
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .label {
    color: #666;
    font-weight: 600;
    font-size: 14px;
}

.summary-item .value {
    color: var(--text-dark);
    font-weight: 600;
    text-align: right;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    padding: 20px;
}

.order-detail-card .order-table {
    margin: 0;
}

.order-table thead {
    background: #f9f9f9;
    border-bottom: 2px solid #ddd;
}

.order-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.order-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
    font-size: 14px;
}

.order-table tbody tr:last-child td {
    border-bottom: none;
}

.text-end {
    text-align: right;
}

.text-center {
    text-align: center;
}

.totals-breakdown {
    padding: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.total-row.divider {
    border-bottom: 2px solid #ddd;
    margin: 5px 0;
}

.total-row.final-total {
    border-bottom: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    padding: 15px 0 0 0;
}

.total-row.final-total span:last-child {
    color: #28a745;
}

.free-shipping {
    color: #28a745;
    font-weight: 600;
}

.address-details {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    line-height: 1.8;
}

.address-details p {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 14px;
}

.address-details p:last-child {
    margin-bottom: 0;
}

.address-details strong {
    display: block;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 700;
}

.order-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.order-actions .btn-basket {
    margin: 0;
}

/* ============================================================
   CHANGE PASSWORD PAGE
   ============================================================ */
.change-password-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.change-password-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.change-password-card .card-header {
    background: linear-gradient(135deg, #f5f5f5 0%, #f0f0f0 100%);
    padding: 30px 20px;
    border-bottom: 2px solid var(--lime);
}

.change-password-card .card-header h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.subtitle {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.change-password-card .form-group {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.change-password-card .form-group:last-of-type {
    border-bottom: none;
}

.form-divider {
    height: 10px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 10px 0;
}

.password-requirements {
    display: block;
    background: #f0f8f0;
    border-left: 3px solid #28a745;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    color: #155724;
}

.password-list {
    list-style: none;
    padding: 10px 0 0 0;
    margin: 0;
}

.password-list li {
    padding: 4px 0 4px 20px;
    margin: 0;
    position: relative;
    font-size: 13px;
    line-height: 1.4;
}

.password-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: 600;
}

.security-tips {
    padding: 20px;
    background: #f0f8f0;
    border-top: 1px solid #e0f0e0;
}

.security-tips h3 {
    margin: 0 0 15px 0;
    color: #155724;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.security-tips h3 i {
    color: #28a745;
    font-size: 18px;
}

.security-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-tips li {
    padding: 8px 0;
    color: #333;
    font-size: 13px;
    border-bottom: 1px solid #e0f0e0;
}

.security-tips li:last-child {
    border-bottom: none;
}

.security-tips li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: 600;
    margin-right: 6px;
}

/* ============================================================
   GLOBAL MODAL DIALOG
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 24px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--text-dark);
    font-weight: 600;
}

.modal-header.modal-info {
    border-bottom-color: #2196F3;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.modal-header.modal-info h2 {
    color: #0d47a1;
}

.modal-header.modal-success {
    border-bottom-color: #28a745;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.modal-header.modal-success h2 {
    color: #1b5e20;
}

.modal-header.modal-error {
    border-bottom-color: #dc3545;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

.modal-header.modal-error h2 {
    color: #b71c1c;
}

.modal-header.modal-warning {
    border-bottom-color: #ffc107;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.modal-header.modal-warning h2 {
    color: #e65100;
}

.modal-header.modal-confirm {
    border-bottom-color: var(--lime-dark);
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

.modal-body {
    padding: 24px;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 15px;
}

.modal-footer {
    padding: 16px 24px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-modal {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-modal:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: #2196F3;
    color: white;
}

.btn-primary:hover {
    background-color: #1976D2;
}

.btn-success {
    background-color: var(--lime);
    color: var(--black);
}

.btn-success:hover {
    background-color: var(--lime-dark);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

@media (max-width: 576px) {
    .modal-content {
        width: 95%;
        max-width: none;
    }

    .modal-header {
        padding: 16px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .modal-body {
        padding: 16px;
        font-size: 14px;
    }

    .modal-footer {
        padding: 12px 16px;
        flex-direction: column;
    }

    .btn-modal {
        width: 100%;
    }
}

/* ============================================================
   CART TOAST NOTIFICATION
   ============================================================ */
.cart-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--lime) 0%, var(--lime-dark) 100%);
    color: var(--black);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 16px;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 9999;
    max-width: 300px;
}

.cart-toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-content i {
    font-size: 20px;
    color: var(--black);
}

@media (max-width: 576px) {
    .cart-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        padding: 14px 20px;
        font-size: 14px;
    }

    .toast-content i {
        font-size: 18px;
    }
}
/* Error variant of the add-to-cart toast */
.cart-toast.toast-error { background: #b52b27; color: #fff; }


/* Checkout: make the Terms and Conditions link obviously clickable (global "a" has no underline/colour) */
.terms-link {
    color: var(--black);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--lime-dark);
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
    padding: 1px 3px;
    border-radius: 3px;
    transition: background-color 0.15s ease;
}
.terms-link i {
    font-size: 0.75em;
    margin-left: 2px;
}
.terms-link:hover,
.terms-link:focus-visible {
    background-color: var(--lime);
    color: var(--black);
    text-decoration-color: var(--black);
}
.terms-link:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 2px;
}


/* Online-store discounts (Admin > Discounts) */
.product-card { position: relative; }
.sale-badge {
    position: absolute; top: 10px; left: 10px; z-index: 3;
    background: #c62828; color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .5px;
    padding: 4px 9px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.sale-badge.inline { position: static; display: inline-block; vertical-align: middle; margin-left: 6px; box-shadow: none; font-size: .8rem; }
.was-price { color: #8a8a8a; font-weight: 400; margin-right: 4px; }
.product-detail-price.on-sale #productPrice { color: #c62828; }
.product-card .product-price .was-price { display: block; font-size: .85em; margin: 0 0 2px; }
.discount-row { color: #1d6b2c; }

/* My Orders: a payment PayFast hasn't confirmed yet */
.order-card.payment-confirming { border-left: 4px solid #f0ad4e; }
.order-card.payment-confirming p { padding: 0 20px 16px; color: #555; }

/* The chosen option's own description (product page) */
.option-desc {
    margin: 12px 0 0;
    padding: 10px 14px;
    background: #f6f8ef;
    border-left: 3px solid var(--lime);
    border-radius: 4px;
    color: #444;
    line-height: 1.5;
    white-space: pre-line;
}

/* Brand under the product name (product page) */
.product-detail-brand { margin: -6px 0 14px; color: #666; font-size: .95rem; }
.product-detail-brand .brand-label { font-weight: 600; color: #333; margin-right: 4px; }
.product-detail-brand a { color: #111; font-weight: 600; text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 3px; }
.product-detail-brand a:hover { color: #000; text-decoration-thickness: 2px; }
