@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* General Page Structure */
#page-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center; /* This centers all direct children horizontally */
  min-height: 100vh;
}

/* Container Base Styles */
.container-header, .container-main, .container-footer {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 10px;
  position: relative; /* Crucial for containing the overlay and content */
  z-index: 0;
}

.container-main {
  flex-grow: 1;
  max-width: 1200px;
}

/* --- REWRITTEN BACKGROUND LOGIC --- */
/* This is an optional overlay div that PHP adds *inside* the container */
.background-color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1; /* Sits on top of the container's background, but below content */
    border-radius: inherit; /* Matches the parent container's corners */
    pointer-events: none; /* Allows clicks to go through to content */
}

/* This div holds the actual content and sits on top of the background/overlay */
.container-content {
    position: relative;
    z-index: 2; /* Ensures content is always on top */
}


/* Contener #1 - Header */
.container-header {
  position: sticky;
  top: 0;
  transition: all 0.3s ease-in-out;
  padding: 0; /* Match content width without extra gutters */
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  z-index: 1000; /* Increased z-index to ensure it's on top of everything */
}

.container-header.match-content {
  max-width: 1200px;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  gap: 16px;
}

.logo-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.logo-group .logo {
    display: inline-flex;
    align-items: center;
}

.logo-group .logo img {
    max-height: 50px;
}

.logo-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.header-user-info {
    display: none;
    align-items: center;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.header-user-name {
    font-size: 12px;
    color: #cbd5f5;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1;
}

.header-user-label {
    font-size: 10px;
    color: #f59e0b;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1;
}

.header-right {
    gap: 8px;
}

.header-action-buttons .cart-summary {
    display: inline-flex;
    font-size: 12px;
    color: #facc15;
    font-weight: 700;
    white-space: nowrap;
}

.header-secondary {
    display: none;
}

.header-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.header-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #e2e8f0;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-quick-link:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.header-quick-link-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.logo {
    flex-shrink: 0;
}

.logo img {
  display: block;
  max-height: 60px;
}

.search-bar {
  flex-grow: 1;
  margin: 0;
  position: relative;
  max-width: 750px;
  display: flex;
  align-items: center;
  border-radius: 25px;
  border: 1px solid #ced4da;
  background: #fff;
  overflow: visible;
}

.search-bar input {
    flex: 1;
    min-width: 0;
    padding: 8px 50px 8px 12px;
    border-radius: 0 25px 25px 0;
    border: none;
    outline: none;
    font-size: 0.9rem;
    height: 38px;
    background: transparent;
}

.search-bar button#searchBtn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.search-bar button#searchBtn:hover {
    background-color: #005bb5;
}
.search-bar button#searchBtn svg {
    color: white;
    width: 16px;
    height: 16px;
}

/* Category selector */
.search-cat-wrap {
    position: relative;
    flex-shrink: 0;
}

.search-cat-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    height: 38px;
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 500;
    color: #495057;
    border-radius: 25px 0 0 25px;
    transition: background 0.15s;
}
.search-cat-btn:hover {
    background: #f1f3f5;
}
.search-cat-chevron {
    opacity: 0.55;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.search-cat-wrap.open .search-cat-chevron {
    transform: rotate(180deg);
}

.search-cat-divider {
    width: 1px;
    height: 20px;
    background: #ced4da;
    flex-shrink: 0;
}

.search-cat-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 190px;
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.13), 0 2px 6px rgba(0,0,0,0.07);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 1100;
}
.search-cat-wrap.open .search-cat-dropdown {
    display: block;
    animation: catDropIn 0.16s ease;
}
@keyframes catDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.search-cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #343a40;
    transition: background 0.12s;
    user-select: none;
}
.search-cat-item:hover {
    background: #f8f9fa;
}
.search-cat-item::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.search-cat-item.active {
    font-weight: 600;
    color: var(--primary-color, #0070f3);
}
.search-cat-item.active::before {
    content: '✓';
    font-size: 0.8rem;
    color: var(--primary-color, #0070f3);
    line-height: 14px;
}

/* Mobile: hide the label text, keep the button compact */
@media (max-width: 560px) {
    .search-cat-btn {
        padding: 0 8px;
        gap: 3px;
    }
    #searchCatLabel {
        display: none;
    }
    .search-cat-dropdown {
        min-width: 160px;
    }
}

@media (min-width: 992px) {
    .container-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .container-header .header {
        position: relative;
        background: linear-gradient(to right, #0f172a 0%, #1e293b 50%, #0f172a 100%);
        left: 0;
        right: 0;
        top: 0;
    }

    .container-header .header-content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: visible;
        padding-bottom: 1px;
        position: relative;
        width: 100%;
    }

    .container-header .header-max-width {
        max-width: 1200px;
        width: 100%;
    }

    .container-header .header-border-overlay {
        position: absolute;
        border-bottom: 1px solid #334155;
        inset: 0;
        pointer-events: none;
        box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
    }

    .container-header .top-header-sticky {
        position: sticky;
        top: 0;
        z-index: 1100;
    }

    .container-header .top-header {
        padding: 10px 0 10px 18px;
    }

    .header-user-info {
        display: inline-flex;
    }

    .header-action-buttons.header-right {
        margin-left: 0;
        flex: 0 0 260px;
        justify-content: flex-end;
    }

    .header-right-cluster {
        flex: 1;
        justify-content: space-evenly;
    }

    .header-action-buttons .cart-summary {
        display: inline-flex;
    }

    .header-account-item,
    .header-cart-item {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .header-menu-item {
        flex: 0 0 auto;
        display: flex;
        justify-content: flex-end;
        margin-left: 5px;
        margin-right: 10px;
    }

    /* Desktop menu button - larger and at right edge */
    .header-menu-item .header-action-btn {
        width: 70px;
        height: 70px;
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        border-radius: 16px;
        box-shadow: none;
        transition: all 0.3s ease;
    }

    .header-menu-item .header-action-btn:hover {
        background: linear-gradient(135deg, #60a5fa, #3b82f6);
        box-shadow: none;
        transform: scale(1.02);
    }

    .header-menu-item .header-action-btn svg {
        width: 38px;
        height: 38px;
    }
}

/* Desktop Figma Menu Row (below top header) */
.desktop-figma-menu {
    display: none;
    margin-top: 0;
    padding: 3px 18px;
    border-top: 1px solid rgba(71, 85, 105, 0.35);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.98));
}

.desktop-figma-menu-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    flex-wrap: nowrap;
    overflow: visible;
    scrollbar-width: none;
}

.desktop-figma-menu-item,
.desktop-figma-menu-trigger {
    border: 1px solid transparent;
    background: transparent;
    color: #dbeafe;
    text-decoration: none;
    border-radius: 0;
    height: 38px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    flex: 0 1 auto;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.desktop-figma-menu-item:hover,
.desktop-figma-menu-trigger:hover,
.desktop-figma-menu-item:focus-visible,
.desktop-figma-menu-trigger:focus-visible {
    background: transparent;
    border-color: transparent;
    color: #ffffff;
    outline: none;
}

.desktop-figma-menu-item.is-primary,
.desktop-figma-menu-item-slide.is-primary .desktop-figma-menu-trigger,
.desktop-figma-menu-trigger.is-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: rgba(96, 165, 250, 0.55);
    color: #ffffff;
    border-radius: 10px;
}

.desktop-figma-menu-item.is-primary:hover,
.desktop-figma-menu-item-slide.is-primary .desktop-figma-menu-trigger:hover,
.desktop-figma-menu-trigger.is-primary:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.desktop-figma-menu-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
    flex: 0 0 auto;
}

.desktop-figma-menu-dropdown-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex: 0 0 auto;
}

.desktop-figma-menu-text {
    display: inline-block;
}

.desktop-figma-menu-item-slide {
    position: relative;
    display: inline-flex;
    flex: 0 1 auto;
}

.desktop-figma-menu-item-slide.desktop-figma-menu-item-expand {
    flex: 0 0 auto;
}

.desktop-figma-menu-item-slide.desktop-figma-menu-item-expand .desktop-figma-menu-trigger {
    width: auto;
    min-width: 132px;
    padding-left: 14px;
    padding-right: 14px;
    justify-content: center;
}

.desktop-figma-menu-trigger {
    cursor: pointer;
}

.desktop-figma-menu-chevron {
    width: 14px;
    height: 14px;
    opacity: 0.9;
    transition: transform 0.18s ease;
}

.desktop-figma-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: #111827;
    border: 1px solid rgba(71, 85, 105, 0.6);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.45);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 1200;
}

.desktop-figma-menu-item-slide:hover .desktop-figma-menu-dropdown,
.desktop-figma-menu-item-slide:focus-within .desktop-figma-menu-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.desktop-figma-menu-item-slide:hover .desktop-figma-menu-chevron,
.desktop-figma-menu-item-slide:focus-within .desktop-figma-menu-chevron {
    transform: rotate(180deg);
}

.desktop-figma-menu-dropdown-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 8px;
    min-height: 42px;
    padding: 2px 10px;
    font-size: 13px;
    font-weight: 500;
}

.desktop-figma-menu-dropdown-link:hover,
.desktop-figma-menu-dropdown-link:focus-visible {
    background: rgba(51, 65, 85, 0.9);
    color: #ffffff;
    outline: none;
}

@media (max-width: 991px) {
    .logo-text {
        display: none;
    }

    .header-secondary {
        display: none;
    }
}

/* --- NEW Styles for Header Action Buttons --- */
.header-action-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    align-items: center;
}

.header-action-btn {
    background-color: transparent;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: center;
    position: relative;
}

.header-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.header-profile-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-action-buttons.header-right {
    align-items: center;
    margin-left: 0;
}

.header-user-cart-box {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    margin-right: 10px;
}

.header-action-buttons.header-right .cart-dropdown-wrapper {
    margin-left: 0;
}

/* Header repair ticket alert */
.header-ticket-alert-wrapper {
    background-color: #1d2738;
    padding-bottom: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.header-ticket-alert {
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: #0b1120;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.header-ticket-alert-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.header-ticket-alert-left {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}

.header-ticket-alert-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: header-ticket-fade 1.6s ease-in-out infinite;
}

.header-ticket-alert-icon svg {
    width: 16px;
    height: 16px;
}

.header-ticket-alert-link {
    color: #0f172a;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.header-ticket-alert-link:hover {
    color: #1e293b;
}

.header-ticket-alert-count,
.header-ticket-alert-label {
    animation: header-ticket-fade 1.6s ease-in-out infinite;
}

.header-ticket-alert-label {
    text-transform: uppercase;
}

@keyframes header-ticket-fade {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}

@media (max-width: 768px) {
    .header-ticket-alert {
        font-size: 10px;
        padding: 5px 12px;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .header-ticket-alert-inner {
        max-width: 100%;
        padding: 0 6px;
    }

    .header-ticket-alert-left {
        gap: 6px;
    }

    .header-ticket-alert-icon {
        width: 16px;
        height: 16px;
    }

    .header-ticket-alert-icon svg {
        width: 14px;
        height: 14px;
    }
}

/* Header pickup & delivery alert */
.header-delivery-alert-wrapper {
    background-color: #1d2738;
    padding-bottom: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.header-delivery-alert {
    background: linear-gradient(90deg, #fca5a5, #f87171);
    color: #0b1120;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.header-delivery-alert-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.header-delivery-alert-left {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}

.header-delivery-alert-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: header-delivery-fade 1.6s ease-in-out infinite;
}

.header-delivery-alert-icon svg {
    width: 16px;
    height: 16px;
}

.header-delivery-alert-link {
    color: #0f172a;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.header-delivery-alert-link:hover {
    color: #1e293b;
}

.header-delivery-alert-count,
.header-delivery-alert-label {
    animation: header-delivery-fade 1.6s ease-in-out infinite;
}

.header-delivery-alert-label {
    text-transform: uppercase;
}

@keyframes header-delivery-fade {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}

@media (max-width: 768px) {
    .header-delivery-alert {
        font-size: 10px;
        padding: 5px 12px;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .header-delivery-alert-inner {
        max-width: 100%;
        padding: 0 6px;
    }

    .header-delivery-alert-left {
        gap: 6px;
    }

    .header-delivery-alert-icon {
        width: 16px;
        height: 16px;
    }

    .header-delivery-alert-icon svg {
        width: 14px;
        height: 14px;
    }
}

.header-action-buttons.header-right .cart-summary {
    margin-right: 0;
}

.header-action-buttons.header-right .header-action-btn {
    width: 36px;
    height: 36px;
}

.header-user-cart-box .header-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.header-user-cart-box .cart-amount-btn:hover {
    background-color: transparent;
}

.header-action-buttons.header-right .header-action-btn svg {
    width: 24px;
    height: 24px;
}

.cart-amount-btn {
    width: auto;
    min-width: 0;
    height: auto;
    padding: 6px 18px;
    gap: 4px;
    border-radius: 12px;
    flex-direction: column;
    align-items: center;
    background: transparent;
}

.cart-amount-btn .cart-total {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #facc15;
    white-space: nowrap;
}

.cart-amount-btn .cart-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.cart-amount-btn .cart-icon-wrap svg {
    width: 17px;
    height: 17px;
}

.header-action-btn .cart-icon-wrap {
    display: inline-flex;
}

.cart-amount-btn svg {
    width: 17px;
    height: 17px;
}

.cart-amount-btn .cart-badge {
    top: -10px;
    right: -10px;
}

.cart-amount-btn span.cart-total {
    display: inline-block;
}

.header-action-buttons.header-right .cart-badge {
    top: -6px;
    right: -8px;
    width: 18px;
    height: 18px;
    font-size: 10px;
    border-width: 2px;
    background: #f59e0b;
    color: #0b1120;
}
 
.header-user-divider {
    width: 1px;
    height: 36px;
    background: rgba(148, 163, 184, 0.3);
}

.header-user-profile {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px 0 4px;
    height: 38px;
    text-decoration: none;
    border-radius: 30px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.5);
    transition: all 0.2s ease;
}

.header-right-cluster {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex: 1;
}

/* Header item containers for centered positioning */
.header-account-item,
.header-cart-item,
.header-menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.header-menu-item {
    flex: 0 0 auto;
    margin-left: 0;
}

/* Menu button - larger icon */
.header-menu-item .header-action-btn {
    width: 60px;
    height: 60px;
}

.header-menu-item .header-action-btn svg {
    width: 40px;
    height: 40px;
}

.header-user-profile:hover {
    background: rgba(30, 41, 59, 1);
    border-color: rgba(96, 165, 250, 0.5);
}

/* Sign In Button - same style as account box */
.header-signin-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px 0 4px;
    height: 38px;
    text-decoration: none;
    border-radius: 30px;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(71, 85, 105, 0.6);
    color: #ffffff;
    transition: all 0.2s ease;
}

.header-signin-btn:hover {
    background: rgba(30, 41, 59, 1);
    border-color: rgba(96, 165, 250, 0.5);
}

.header-signin-btn:hover .header-signin-icon {
    border-color: #60a5fa;
}

.header-signin-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e3a5f;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}

.header-signin-icon svg {
    width: 16px;
    height: 16px;
}

.header-signin-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.header-signin-text {
    font-size: 12px;
    color: #cbd5f5;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1;
}

.header-signin-label {
    font-size: 10px;
    color: #f59e0b;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1;
}

.header-user-profile .header-user-info {
    display: inline-flex;
}

.header-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 2px solid #3b82f6;
    overflow: hidden;
    transition: border-color 0.2s ease;
    background: #1e3a5f;
    flex-shrink: 0;
}

.header-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-user-profile:hover .header-user-avatar {
    border-color: #60a5fa;
}

.header-bell-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: #cbd5f5;
    position: relative;
}

.header-bell-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.header-bell-indicator {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 999px;
    border: 2px solid #0b1120;
}

.header-profile-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.header-action-btn img,
.header-action-btn svg {
    width: 34px;
    height: 34px;
    display: block;
    margin: 0;
}

.header-action-btn.header-profile-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
}

.header-action-btn span:not(.cart-badge):not(.notification-badge) {
    display: none;
}

.header-action-btn.cart-amount-btn span.cart-total {
    display: inline-block;
}

.header-action-btn.cart-action-btn svg {
    stroke: currentColor;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #22c55e;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f172a;
}

/* --- Cart Dropdown Styles --- */
.cart-dropdown-wrapper {
    position: relative;
}

.cart-dropdown-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 320px;
    max-height: 0;
    overflow: hidden;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.cart-dropdown-panel.open {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cart-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.cart-dropdown-title {
    font-weight: 600;
    font-size: 15px;
    color: #0f172a;
}

.cart-dropdown-count {
    font-size: 13px;
    color: #64748b;
}

.cart-dropdown-items {
    max-height: 240px;
    overflow-y: auto;
    padding: 8px 0;
}

.cart-dropdown-items::-webkit-scrollbar {
    width: 6px;
}

.cart-dropdown-items::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.cart-dropdown-items::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.cart-dropdown-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    color: #94a3b8;
}

.cart-dropdown-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.cart-dropdown-empty p {
    margin: 0;
    font-size: 14px;
}

.cart-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    transition: background-color 0.15s ease;
}

.cart-dropdown-item:hover {
    background-color: #f8fafc;
}

.cart-dropdown-item-img,
.cart-dropdown-item-img-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f5f9;
    flex-shrink: 0;
}

.cart-dropdown-item-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-dropdown-item-img-placeholder svg {
    width: 20px;
    height: 20px;
    color: #94a3b8;
}

.cart-dropdown-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

/* Cart item remove button */
.cart-dropdown-item-remove {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.cart-dropdown-item-remove svg {
    width: 16px;
    height: 16px;
    stroke: #ef4444;
}

.cart-dropdown-item-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    opacity: 1;
}

.cart-dropdown-item-remove:hover svg {
    stroke: #dc2626;
}

.cart-dropdown-item-remove:active {
    transform: scale(0.9);
}

.cart-dropdown-item-remove:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Cart item removing animation */
.cart-dropdown-item.cart-item-removing {
    overflow: hidden;
    transition: height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

.cart-dropdown-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-dropdown-item-details {
    font-size: 13px;
    color: #64748b;
}

.cart-dropdown-footer {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
}

.cart-dropdown-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cart-dropdown-btn-secondary {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.cart-dropdown-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.cart-dropdown-btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
}

.cart-dropdown-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Mobile responsiveness for cart dropdown */
@media (max-width: 480px) {
    .cart-dropdown-panel {
        width: 290px;
        right: -40px;
    }
    
    .cart-dropdown-items {
        max-height: 200px;
    }
}

/* ===== Notification Bell Dropdown Styles ===== */

.header-notification-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-right: 10px;
}

.notification-dropdown-wrapper {
    position: relative;
}

.notification-bell-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 0;
}

.notification-bell-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon-wrap svg {
    width: 22px;
    height: 22px;
    color: #ffffff;
    stroke: #ffffff;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    background: #eab308;
    color: #000000;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #854d0e;
    animation: notificationPulse 2s ease-in-out infinite;
}

@keyframes notificationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Notification Dropdown Panel */
.notification-dropdown-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 340px;
    max-height: 0;
    overflow: hidden;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.notification-dropdown-panel.open {
    max-height: 480px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.notification-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.notification-dropdown-title {
    font-weight: 600;
    font-size: 15px;
    color: #0f172a;
}

.notification-dropdown-count {
    font-size: 13px;
    color: #ef4444;
    font-weight: 600;
}

.notification-dropdown-items {
    max-height: 320px;
    overflow-y: auto;
    padding: 6px 0;
}

.notification-dropdown-items::-webkit-scrollbar {
    width: 6px;
}

.notification-dropdown-items::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.notification-dropdown-items::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* Notification Item Row */
a.notification-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

a.notification-dropdown-item:last-child {
    border-bottom: none;
}

a.notification-dropdown-item:hover {
    background-color: #f0f9ff;
}

/* Icon circles for each type */
.notification-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-item-icon svg {
    width: 20px;
    height: 20px;
}

.notification-icon-repair {
    background: #fef3c7;
    color: #d97706;
}

.notification-icon-repair svg {
    stroke: #d97706;
}

.notification-icon-delivery {
    background: #dbeafe;
    color: #2563eb;
}

.notification-icon-delivery svg {
    stroke: #2563eb;
}

/* Text content */
.notification-item-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.notification-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.notification-item-status {
    font-size: 12px;
    color: #64748b;
}

.notification-item-action {
    font-size: 12px;
    color: #2563eb;
    font-weight: 500;
}

a.notification-dropdown-item:hover .notification-item-action {
    text-decoration: underline;
}

/* Footer */
.notification-dropdown-footer {
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
    text-align: center;
}

.notification-dropdown-btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    border: 1px solid #2563eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.notification-dropdown-btn:hover {
    background: #2563eb;
    color: #ffffff;
}

/* Mobile responsiveness for notification dropdown */
@media (max-width: 768px) {
    .notification-dropdown-panel {
        position: fixed;
        top: 60px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-10px);
        width: calc(100vw - 24px);
        max-width: 340px;
    }

    .notification-dropdown-panel.open {
        transform: translateX(-50%) translateY(0);
    }

    .notification-dropdown-items {
        max-height: 240px;
    }
}

/* ===== End Notification Bell Styles ===== */

/* Cart item zoom animation for newly added items */
@keyframes cartItemZoom {
    0% {
        transform: scale(1);
        background-color: transparent;
    }
    25% {
        transform: scale(1.05);
        background-color: rgba(34, 197, 94, 0.15);
    }
    50% {
        transform: scale(1.08);
        background-color: rgba(34, 197, 94, 0.2);
    }
    75% {
        transform: scale(1.05);
        background-color: rgba(34, 197, 94, 0.15);
    }
    100% {
        transform: scale(1);
        background-color: rgba(34, 197, 94, 0.08);
    }
}

.cart-item-just-added {
    background-color: rgba(34, 197, 94, 0.08);
}

.cart-item-zoom-animate {
    animation: cartItemZoom 0.6s ease-out;
    position: relative;
    z-index: 1;
}

.cart-item-zoom-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #22c55e;
    border-radius: 8px;
    opacity: 0;
    animation: cartItemBorderPulse 0.6s ease-out;
}

@keyframes cartItemBorderPulse {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    30% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.02);
    }
}

/* Add to cart button success state */
.btn-add-cart.added-success,
.mobile-action-cart.added-success {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    border-color: #16a34a !important;
}

/* --- Old Account Actions - Keep hidden for reference or remove if sure --- */
.account-actions {
   display: none; /* Hide the old button container */
}


/* Contener #3 - Footer */
.container-footer {
  text-align: center;
  padding-top: 20px;
  padding-bottom: 20px;
  background-color: #f8f9fa;
  border-top: 1px solid var(--border-color);
  max-width: 1200px;
}

/* --- NEW RESPONSIVE HEADER STYLES --- */
.hamburger-menu-btn { /* This was misnamed, it's actually the main menu button */
    display: flex; /* Always display the new menu button */
    /* Styles are now handled by .header-action-btn */
}
/* Slide-out menu styles remain largely the same, but ensure trigger ID is correct in JS */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -300px; /* Start off-screen */
    width: 300px;
    height: 100%;
    background: linear-gradient(160deg, #1e3a8a, #2c3e50);
    z-index: 1002;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 15px rgba(0,0,0,0.3);
    color: white;
}
.mobile-nav.open {
    left: 0;
}
.mobile-nav-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}
.mobile-nav-close {
    position: absolute;
    top: 15px; right: 15px;
    font-size: 2.5rem;
    color: white;
    background: none; border: none; cursor: pointer;
    line-height: 1;
}
.mobile-nav-content {
    padding-top: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.mobile-nav-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-nav-header .icon-bg {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-nav-header .icon-bg svg { width: 32px; height: 32px; }
.mobile-nav-header h3 { font-size: 1.5rem; margin: 0; color: white; }

.mobile-nav-scroll {
    overflow-y: auto;
    flex-grow: 1;
    padding: 10px 20px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 10px;
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.2s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
}
.mobile-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.mobile-nav-item svg { width: 35px; height: 35px; }
.mobile-nav-item img { width: 35px; height: 35px; object-fit: contain; }
.mobile-nav-item.sub-item img { width: 35px; height: 35px; }

/* Styles for accordion menu items */
.accordion .accordion-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}
.accordion.active .accordion-arrow {
    transform: rotate(90deg);
}
.sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 0;
    background-color: rgba(0,0,0,0.2);
    border-radius: 0 0 8px 8px;
}
.sub-item {
    font-size: 0.95rem !important;
    padding-left: 10px !important;
    justify-content: flex-start;
    text-align: left;
}
.sub-menu-nested {
    margin-left: 8px;
    background-color: rgba(0,0,0,0.16);
}
.sub-item.sub-item-nested {
    padding-left: 52px !important;
    font-size: 0.9rem !important;
}
/* Logout button specific style */
.mobile-logout-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 20px auto;
    padding: 15px;
    text-align: center;
    background-color: transparent;
    border: 1px solid white;
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

/* --- Adjustments for smaller screens --- */
@media (max-width: 768px) {
    .container-header {
        padding: 0 10px; /* Reduce padding on mobile */
    }
    .top-header {
        padding: 8px 0; /* Reduce vertical padding */
        gap: 8px; /* Reduce gap */
        transition: gap 0.2s ease;
    }
    .logo img {
        max-height: 28px; /* Smaller logo on mobile */
    }
    
    .logo-group .logo img {
        max-height: 28px;
    }
    .search-bar {
       max-width: 160px;
       flex: 1 1 160px;
       transition: max-width 0.28s ease, transform 0.28s ease;
    }
    .search-bar input {
        padding: 8px 40px 8px 12px;
        font-size: 14px;
        height: 34px;
    }
    .search-bar input::placeholder {
        font-size: 12px;
    }
     .search-bar button {
        width: 26px;
        height: 26px;
        right: 4px;
     }
     .search-bar button svg {
        width: 14px;
        height: 14px;
     }

    .header-action-buttons {
        gap: 8px;
        transition: opacity 0.2s ease, transform 0.2s ease, width 0.2s ease;
    }
    .header-action-btn.header-nav-link {
        display: none;
    }
    .header-action-btn {
        width: 40px;
        height: 40px;
        padding: 0;
    }
    .header-action-btn img,
    .header-action-btn svg {
        width: 24px;
        height: 24px;
    }

    /* Mobile header layout */
    .header-right-cluster {
        justify-content: flex-start;
        gap: 6px;
        flex: 0 0 auto;
    }

    .header-account-item {
        flex: 0 0 auto;
        margin-right: 4px;
    }

    .header-cart-item {
        flex: 0 0 auto;
    }

    .header-menu-item {
        flex: 0 0 auto;
        margin-left: 4px;
    }

    /* Mobile account styles */
    .header-user-profile {
        padding: 0 8px 0 3px;
        height: 30px;
        gap: 5px;
    }

    .header-user-avatar {
        width: 22px;
        height: 22px;
    }

    .header-user-name {
        font-size: 9px;
        max-width: 65px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-user-label {
        font-size: 7px;
    }

    .header-user-info {
        gap: 0;
        display: inline-flex;
    }

    /* Mobile sign-in button */
    .header-signin-btn {
        padding: 0 8px 0 3px;
        height: 30px;
        gap: 5px;
    }

    .header-signin-icon {
        width: 22px;
        height: 22px;
    }

    .header-signin-icon svg {
        width: 12px;
        height: 12px;
    }

    .header-signin-text {
        font-size: 9px;
    }

    .header-signin-label {
        font-size: 7px;
    }

    /* Mobile cart styles */
    .cart-amount-btn {
        padding: 4px 10px;
        gap: 2px;
    }

    .cart-amount-btn .cart-total {
        font-size: 9px;
    }

    .cart-amount-btn .cart-icon-wrap {
        width: 18px;
        height: 18px;
    }

    .cart-amount-btn .cart-icon-wrap svg {
        width: 14px;
        height: 14px;
    }

    .top-header.search-active .header-action-buttons {
        opacity: 0;
        transform: translateX(8px);
        width: 0;
        margin: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .top-header.search-active .search-bar {
        max-width: 100%;
        transform: translateX(-6px);
    }
}

/* --- Pagination Styles --- */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination button {
    color: var(--primary-color);
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid var(--border-color);
    margin: 0 4px;
    cursor: pointer;
    background-color: white;
    border-radius: 5px;
    font-size: 0.9rem;
}

.pagination button:hover:not(.active):not(:disabled) {
    background-color: #f0f0f0;
}

.pagination button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: bold;
}

.pagination button:disabled {
    color: #ccc;
    cursor: not-allowed;
    border-color: #eee;
}

/* --- Open Tickets Notification Bar --- */
.open-tickets-bar-wrapper {
    max-width: 1200px; /* Match other containers */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 20px;
    margin-top: -20px;
    /* Background color removed - let the container's bg show */
    box-sizing: border-box; /* Ensures padding is included in width */
}

.open-tickets-bar {
    max-width: 350px;
    margin: 0 auto; /* This centers the bar within the wrapper */
    background-color: #e6a72c;
    color: #22354e;
    border: none;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.open-tickets-bar:hover {
    background-color: #d19627;
}

.open-tickets-content {
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.icon-and-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.ticket-icon {
   display: none;
}

.ticket-count {
    background-color: #22354e;
    color: white;
    font-weight: 700;
    font-size: 0.9em;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.view-tickets-btn {
    display: none;
}

@media (max-width: 1240px) { /* Corresponds to 1200px + padding */
    .open-tickets-bar-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .open-tickets-bar-wrapper {
        padding: 0.75rem 10px; /* Reduced padding */
        margin-top: -10px; /* Adjust spacing */
    }
    .open-tickets-bar {
        border-radius: 0 0 12px 12px;
        max-width: 300px; /* Slightly narrower */
    }
    .open-tickets-content {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        text-align: center;
    }
     .icon-and-text {
        font-size: 0.9rem; /* Slightly smaller text */
     }
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #ffffff;
  padding: 0 20px env(safe-area-inset-bottom);
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
}

.footer-inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand-text {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-group-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.footer-socials img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.footer-socials a:hover {
  background: rgba(99, 102, 241, 0.9);
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.6;
}

.footer-legal p {
  margin: 6px 0;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 0 16px 0;
    margin-bottom: 0;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand,
  .footer-social {
    grid-column: 1 / -1;
  }
  .footer-brand-title {
    font-size: 16px;
  }
  .footer-brand-text {
    font-size: 12px;
    line-height: 1.5;
  }
  .footer-group-title {
    font-size: 13px;
    margin-bottom: 8px;
  }
  .footer-links {
    gap: 6px;
  }
  .footer-links a {
    font-size: 12px;
  }
  .footer-legal {
    text-align: left;
    font-size: 11px;
  }
}

/* =====================================================
   GLASS HEADER STYLES - Modern Dark Theme
   ===================================================== */

/* Glass-morphic Header Background */
.glass-header {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  color: #ffffff;
}

.glass-header .top-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo Area - Icon + Text Branding */
.glass-header .logo-area {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-shrink: 0;
}

.glass-header .logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.glass-header .logo-brand:hover .logo-icon {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.glass-header .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(to bottom right, #3b82f6, #4f46e5);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease;
}

.glass-header .logo-text {
  display: flex;
  flex-direction: column;
}

.glass-header .logo-text .brand-name {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.glass-header .logo-text .brand-tagline {
  font-size: 10px;
  color: #94a3b8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Header Navigation Links */
.header-nav-links {
  display: none;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}

@media (min-width: 1024px) {
  .header-nav-links {
    display: flex;
  }
}

.header-nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.header-nav-links a:hover,
.header-nav-links a.active {
  color: #ffffff;
}

.header-nav-links a.active {
  color: #60a5fa;
}

/* Glass Header Search Bar */
.glass-header .search-bar {
  flex: 1;
  max-width: 640px;
  margin: 0;
  position: relative;
}

.glass-header .search-bar .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s ease;
  font-size: 14px;
}

.glass-header .search-bar:focus-within .search-icon {
  color: #60a5fa;
}

.glass-header .search-bar input {
  width: 100%;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid #475569;
  border-radius: 9999px;
  padding: 10px 60px 10px 44px;
  font-size: 14px;
  color: #ffffff;
  transition: all 0.3s ease;
}

.glass-header .search-bar input::placeholder {
  color: #94a3b8;
}

.glass-header .search-bar input:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.glass-header .search-bar .search-hint {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: #334155;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 9999px;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
}

.glass-header .search-bar .search-hint:hover {
  background: #475569;
}

/* Right Actions Area */
.glass-header .header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

/* Notification Bell */
.glass-header .notification-btn {
  position: relative;
  background: none;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0;
  font-size: 20px;
  transition: color 0.2s ease;
}

.glass-header .notification-btn:hover {
  color: #ffffff;
}

.glass-header .notification-btn .notif-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #0f172a;
}

/* Cart Button */
.glass-header .cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0;
  font-size: 20px;
  transition: color 0.2s ease;
}

.glass-header .cart-btn:hover {
  color: #ffffff;
}

.glass-header .cart-btn .cart-icon-wrapper {
  position: relative;
}

.glass-header .cart-btn .cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: #3b82f6;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #0f172a;
  transition: transform 0.2s ease;
}

.glass-header .cart-btn:hover .cart-badge {
  transform: scale(1.1);
}

.glass-header .cart-btn .cart-total {
  display: none;
  font-size: 14px;
  font-weight: 500;
}

@media (min-width: 1280px) {
  .glass-header .cart-btn .cart-total {
    display: inline;
  }
}

/* Divider */
.glass-header .header-divider {
  width: 1px;
  height: 32px;
  background: #334155;
}

/* Auth Buttons */
.header-auth-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-auth-buttons .btn-signin {
  background: #334155;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
}

.header-auth-buttons .btn-signin:hover {
  background: #475569;
}

.header-auth-buttons .btn-signup {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.header-auth-buttons .btn-signup:hover {
  background: #2563eb;
}

/* User Profile Section (logged in) */
.header-user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(71, 85, 105, 0.6);
  padding: 0 14px 0 4px;
  height: 38px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.header-user-profile:hover .user-name {
  color: #60a5fa;
}

.header-user-profile:hover .user-avatar {
  border-color: #3b82f6;
}

.header-user-profile .user-info {
  display: none;
  text-align: right;
}

@media (min-width: 768px) {
  .header-user-profile .user-info {
    display: block;
  }
}

.header-user-profile .user-name {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  transition: color 0.2s ease;
  display: block;
}

.header-user-profile .user-role {
  font-size: 12px;
  color: #94a3b8;
  display: block;
}

.header-user-profile .user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #334155;
  object-fit: cover;
  transition: border-color 0.2s ease;
}

.header-user-profile .user-chevron {
  color: #64748b;
  font-size: 12px;
  transition: color 0.2s ease;
}

.header-user-profile:hover .user-chevron {
  color: #ffffff;
}

/* =====================================================
   TICKET NOTIFICATION BAR
   ===================================================== */

.header-notification-bar {
  background: linear-gradient(to right, #f59e0b, #ea580c);
  color: #ffffff;
  font-size: 14px;
  padding: 8px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-notification-bar .notification-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-notification-bar .notification-message {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.header-notification-bar .notification-message i {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.header-notification-bar .ticket-link {
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  color: inherit;
}

.header-notification-bar .ticket-link:hover {
  opacity: 0.9;
}

.header-notification-bar .notification-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
}

.header-notification-bar .notification-links a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.header-notification-bar .notification-links a:hover {
  opacity: 0.8;
}

.header-notification-bar .notification-links .link-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
}

/* Hide notification bar on mobile */
@media (max-width: 767px) {
  .header-notification-bar {
    display: none;
  }
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS FOR GLASS HEADER
   ===================================================== */

@media (max-width: 1023px) {
  .glass-header .top-header {
    gap: 16px;
    padding: 0 16px;
    height: 70px;
  }
  
  .glass-header .logo-area {
    gap: 16px;
  }
  
  .glass-header .search-bar {
    display: none;
  }
  
  .glass-header .header-divider {
    display: none;
  }
}

@media (max-width: 767px) {
  .glass-header .logo-text .brand-tagline {
    display: none;
  }
  
  .glass-header .cart-btn .cart-total {
    display: none;
  }
  
  .glass-header .header-actions {
    gap: 16px;
  }
  
  .header-auth-buttons {
    gap: 8px;
  }
  
  .header-auth-buttons .btn-signin,
  .header-auth-buttons .btn-signup {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .header-auth-buttons .btn-signup i {
    display: none;
  }
}
