@import url('https://fonts.googleapis.com/css2?family=Londrina+Solid:wght@400;900&display=swap');

/* ============================================
   BEGALLERY - CLEAN MINIMAL DESIGN
   ============================================ */

/* ============================================
   COLOR SCHEMES
   ============================================ */

/* Default: Seaside (Teal/Mint) */
:root,
[data-theme="seaside"] {
      --primary: #85D1DB;
    --primary-light: #b3ebf2;
    --primary-dark: #5fb8c4;
    --primary-darker: #3d8a94;

    /* Accent */
    --accent: #74d8a2;
    --accent-dark: #2da061;

    /* Intro overlay */
    --intro-overlay-start: rgba(61, 138, 148, 0.75);
    --intro-overlay-mid: rgba(50, 79, 83, 0.65);
    --intro-overlay-end: rgba(133, 209, 219, 0.5);

    /* Text */
    --text-dark: #1a1a1a;
    --text-medium: #555555;
    --text-light: #888888;

    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-light: #f5f5f7;
    --bg-page: #fafafa;

    /* Transitions */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Blue */
[data-theme="blue"] {
    --primary: #6BC4F5;
    --primary-light: #a8dcff;
    --primary-dark: #1990d6;
    --primary-darker: #116292;

    /* Accent */
    --accent: #0a6292;
    --accent-dark: #074262;

    /* Intro overlay */
    --intro-overlay-start: rgba(17, 98, 146, 0.75);
    --intro-overlay-mid: rgba(7, 66, 98, 0.65);
    --intro-overlay-end: rgba(107, 196, 245, 0.5);
}

/* Quiet - Soft Beige/Cream */
[data-theme="quiet"] {
    --primary: #E1C5B3;
    --primary-light: #F0E1D9;
    --primary-dark: #D3A790;
    --primary-darker: #BD8F77;

    /* Accent - Soft Sage Green */
    --accent: #A8C4A8;
    --accent-dark: #7A9E7A;

    /* Intro overlay */
    --intro-overlay-start: rgba(189, 143, 119, 0.75);
    --intro-overlay-mid: rgba(122, 158, 122, 0.65);
    --intro-overlay-end: rgba(225, 197, 179, 0.5);
}

/* Flamingo - Warm Coral/Rose */
[data-theme="flamingo"] {
    --primary: #E8706A;
    --primary-light: #F4B0AA;
    --primary-dark: #C04840;
    --primary-darker: #9E3A34;

    /* Accent */
    --accent: #F2889C;
    --accent-dark: #C45A75;

    /* Intro overlay */
    --intro-overlay-start: rgba(158, 58, 52, 0.75);
    --intro-overlay-mid: rgba(196, 90, 117, 0.65);
    --intro-overlay-end: rgba(232, 112, 106, 0.5);
}

/* Urban - Sharp Modern Slate */
[data-theme="urban"] {
    --primary: #64748B;
    --primary-light: #CBD5E1;
    --primary-dark: #475569;
    --primary-darker: #334155;

    /* Accent - Warm Coral */
    --accent: #EB7B52;
    --accent-dark: #D4684A;

    /* Intro overlay */
    --intro-overlay-start: rgba(51, 65, 85, 0.75);
    --intro-overlay-mid: rgba(234, 88, 12, 0.65);
    --intro-overlay-end: rgba(100, 116, 139, 0.5);
}

/* Forest - Green/Natural */
[data-theme="forest"] {
    --primary: #90B77D;
    --primary-light: #D2D79F;
    --primary-dark: #42855B;
    --primary-darker: #2D5A3D;

    /* Accent - Dusty Berry */
    --accent: #B4838D;
    --accent-dark: #946A73;

    /* Intro overlay */
    --intro-overlay-start: rgba(45, 90, 61, 0.75);
    --intro-overlay-mid: rgba(148, 106, 115, 0.65);
    --intro-overlay-end: rgba(144, 183, 125, 0.5);
}

/* Urban theme: white text on dark backgrounds */
[data-theme="urban"] .breadcrumb-nav a.active,
[data-theme="urban"] .btn-primary,
[data-theme="urban"] .code-form button,
[data-theme="urban"] .nav-item.active,
[data-theme="urban"] .btn-add,
[data-theme="urban"] .qty-btn-minus,
[data-theme="urban"] .qty-btn-plus {
    color: #ffffff;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
}

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

a:hover,
a:focus,
a:active {
    text-decoration: none;
}

.fa {
    color: var(--primary-dark)
}

.alert-warning fa {
    color: white;
}

input[type='checkbox'] {
    margin: 0;
}

/* ============================================
   HEADER - TOP BAR (Clean White)
   ============================================ */

.site-header {
    background: transparent;
    position: relative;
}

/*.site-header::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    bottom: 0;*/
/*    left: 0;*/
/*    right: 0;*/
/*    height: 3px;*/
/*    background: linear-gradient(90deg, var(--accent), var(--primary-dark));*/
/*}*/

.header-top {
    /*max-width: 1400px;*/
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
}

/* Code form in header */
.header-top .nav-code {
    flex: 1;
    max-width: 280px;
}

.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.site-logo img {
    height: 56px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* Theme Dropdown */
.theme-dropdown {
    position: relative;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
    border-radius: 8px;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.15);
}

.theme-toggle:focus {
    outline: none;
}

.theme-toggle i:last-child {
    font-size: 10px;
    transition: transform var(--transition);
}

.theme-dropdown:hover .theme-toggle i:last-child {
    transform: rotate(180deg);
}

.theme-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 140px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
    z-index: 200;
    overflow: hidden;
}

.theme-dropdown:hover .theme-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-medium);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
}

.theme-option:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.theme-option.active {
    background: var(--primary-light);
    color: var(--primary-darker);
}

.theme-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color var(--transition);
}

.lang-toggle:hover {
    color: var(--text-dark);
}

.lang-toggle:focus {
    outline: none;
}

.lang-toggle i {
    font-size: 10px;
    transition: transform var(--transition);
}

.lang-dropdown:hover .lang-toggle i,
.lang-dropdown.open .lang-toggle i {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 60px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
    z-index: 200;
    overflow: hidden;
}

.lang-dropdown:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-medium);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
}

.lang-menu a:hover {
    background: var(--accent);
    color: var(--text-dark);
}

/* Header icon buttons */
.header-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    font-size: 18px;
    border-radius: 50%;
    background: var(--bg-light);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.header-icon:hover {
    color: var(--accent-dark);
    background: var(--accent);
    transform: scale(1.05);
}

button.header-icon:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-light);
}

/* ============================================
   CODE FORM - Distinctive Style
   ============================================ */

.code-form {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: var(--transition);
}

.code-form:focus-within {
    box-shadow: 0 4px 20px rgba(133, 209, 219, 0.25), 0 0 0 2px var(--primary);
}

.code-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    background: transparent;
    color: var(--text-dark);
}

.code-form input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.code-form input.highlight {
    animation: glow 0.6s ease 3;
}

@keyframes glow {
    0%, 100% { background: transparent; }
    50% { background: rgba(133, 209, 219, 0.1); }
}

.code-form button {
    padding: 12px 18px;
    background: var(--primary-dark);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.code-form button:hover {
    background: var(--primary-dark);
    padding-right: 22px;
}

/* Cart Button - Eye-catching */
.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--accent);
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(182, 242, 209, 0.4);
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(182, 242, 209, 0.5);
    background: #9fe8c0;
}

.cart-btn i {
    font-size: 16px;
}

.cart-count {
    background: var(--accent-dark);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}
/* Countdown - Subtle */
.nav-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-medium);
    font-size: 13px;
    font-weight: 500;
    padding: 10px 16px;
    background: var(--bg-light);
    border-radius: 8px;
}

.nav-countdown i {
    color: var(--primary-darker);
}

/* ============================================
   PAGE CONTENT
   ============================================ */

.page-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
}

.page-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 1rem;
    margin-top: 0;
    border-bottom: none;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.5px;
}

.page-header .count {
    font-size: 15px;
    background: var(--primary-darker);
    color: white;
    border-radius: 50px;
    padding: 3px 8px;
    font-weight: 500;
}

/* Chevron/Arrow style breadcrumb */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
}

/* Hide the separator - we use CSS arrows instead */
.breadcrumb-nav .sep {
    display: none;
}

.breadcrumb-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 16px 10px 24px;
    background: #e0e0e3;
    color: var(--text-medium);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-right: 4px;
}

/* First item - rounded left edge */
.breadcrumb-nav a:first-child {
    border-radius: 8px 0 0 8px;
    padding-left: 16px;
}

/* Last item - rounded right edge */
.breadcrumb-nav a:last-child {
    border-radius: 0 8px 8px 0;
    padding-right: 16px;
}

/* Single item - fully rounded */
.breadcrumb-nav a:first-child:last-child {
    border-radius: 8px;
}

/* Arrow pointing right (after each item except last) */
.breadcrumb-nav a::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 12px solid #e0e0e3;
    z-index: 2;
}

.breadcrumb-nav a:last-child::after {
    display: none;
}

/* Left notch (indent) for items after first */
.breadcrumb-nav a:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 12px solid white;
    z-index: 1;
}

/* Active breadcrumb */
.breadcrumb-nav a.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.breadcrumb-nav a.active::after {
    border-left-color: var(--primary);
}

/* Hover states */
.breadcrumb-nav a:not(.active):hover {
    background: #e8f6f8;
    color: var(--primary-dark);
}

.breadcrumb-nav a:not(.active):hover::after {
    border-left-color: #e8f6f8;
}

/* ============================================
   UTILITIES
   ============================================ */

.hidden {
    display: none !important;
}

#globalSpinner {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: var(--primary);
    font-size: 36px;
}

/* ============================================
   BUTTONS - Strong Identity
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(133, 209, 219, 0.35);
}

.btn-primary:hover {
    background: var(--primary-darker);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(133, 209, 219, 0.45);
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--bg-light);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-darker);
    transform: translateY(-2px);
}

.btn-warning {
    background: #fbbf24;
    color: #78350f;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.35);
}

.btn-warning:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(251, 191, 36, 0.45);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* ============================================
   FORMS
   ============================================ */

.form-control {
    padding: 12px 16px;
    border: 2px solid var(--bg-light);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(133, 209, 219, 0.15);
}

/* ============================================
   MODALS
   ============================================ */

.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid var(--bg-light);
    padding: 20px 24px;
}

.modal-header .modal-title {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header .modal-title i {
    font-size: 24px;
    color: var(--primary-dark);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--bg-light);
    padding: 16px 24px;
    background: var(--bg-light);
    gap: 12px;
}

/* ============================================
   ALERTS
   ============================================ */

.alert-info {
    background: linear-gradient(135deg, #e8f6f8 0%, #d4eef1 100%);
    color: var(--text-dark);
    border: none;
    border-radius: 12px;
    padding: 18px 20px;
    font-weight: 500;
}

.alert-dark {
    background: var(--text-dark);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px 20px;
    text-align: center;
    font-weight: 500;
}

.alert-success-center {
    background: linear-gradient(135deg, #eaf8ee 0%, #d4f0dc 100%);
    color: var(--text-dark);
    border: none;
    border-radius: 12px;
    padding: 18px 20px;
    text-align: center;
    font-weight: 500;
}

/* ============================================
   POPOVER
   ============================================ */

.popover {
    border: none;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.15);
    max-width: 400px;
}

/* ============================================
   INTRO PAGE
   ============================================ */

.intro {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1000;
}

.intro:not(.noBg)::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--intro-overlay-start) 0%, var(--intro-overlay-mid) 50%, var(--intro-overlay-end) 100%);
}

/* Intro Content - Centered */
.intro-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    width: 90%;
    max-width: 480px;
    padding: 40px;
}

.intro-logo {
    max-height: 80px;
    max-width: 200px;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.intro-title {
    color: white;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 32px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.intro.noBg .intro-title {
    color: var(--text-dark);
    text-shadow: none;
}

/* Intro Form */
.intro-form {
    width: 100%;
}

.intro-input-wrapper {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.intro-input-wrapper input {
    flex: 1;
    padding: 18px 24px;
    border: none;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    background: transparent;
    outline: none;
    min-width: 0;
}

.intro-input-wrapper input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.intro-input-wrapper button {
    padding: 18px 28px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-input-wrapper button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
    padding-right: 36px;
}

.intro-hint {
    margin-top: 16px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 500;
}

.intro.noBg .intro-hint {
    color: var(--text-medium);
}

/* Legacy wrapper support */
.intro .wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}

.intro h1 {
    color: white;
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: -1px;
}

.intro.noBg h1 {
    color: var(--text-dark);
}

/* Intro Responsive */
@media (max-width: 576px) {
    .intro-content {
        padding: 24px;
    }

    .intro-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .intro-logo {
        max-height: 60px;
        margin-bottom: 20px;
    }

    .intro-input-wrapper input {
        padding: 14px 16px;
        font-size: 16px;
    }

    .intro-input-wrapper button {
        padding: 14px 20px;
        font-size: 16px;
    }
}
