/* ============================================
   FERGALICIOUS - Main Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Announcement Bar --- */
.announcement-bar {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-on-primary);
    text-align: center;
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}
.announcement-bar i { margin-right: 8px; }

/* --- Header --- */
.site-header {
    background: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    transition: var(--transition);
}
.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
}
.logo-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--header-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Navigation */
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-list > li > a {
    color: var(--header-text);
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 16px;
    border-radius: var(--radius);
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-list > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.nav-list > li > a:hover::after,
.nav-list > li > a.active::after {
    width: 70%;
}
.nav-list > li > a:hover { color: var(--primary); }
.nav-list > li > a .fa-chevron-down { font-size: 0.65rem; transition: var(--transition); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    z-index: 100;
}
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.has-dropdown:hover > a .fa-chevron-down { transform: rotate(180deg); }
.dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}
.dropdown a:hover {
    background: var(--bg-alt);
    color: var(--primary);
}
.dropdown .view-all {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 12px;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.cart-icon {
    position: relative;
    color: var(--header-text);
    font-size: 1.3rem;
    padding: 8px;
    transition: var(--transition);
}
.cart-icon:hover { color: var(--primary); transform: scale(1.1); }
.cart-badge {
    position: absolute;
    top: 0;
    right: -2px;
    background: var(--primary);
    color: var(--text-on-primary);
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--header-text);
    transition: var(--transition);
    border-radius: 2px;
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}
.mobile-overlay.active { display: block; }

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 24px;
}
.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 16px;
    text-shadow: 2px 4px 12px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease;
}
.hero-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    opacity: 0.9;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    line-height: 1;
}
.btn-primary {
    background: var(--primary);
    color: var(--text-on-primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-secondary:hover {
    background: var(--primary);
    color: var(--text-on-primary);
    transform: translateY(-2px);
}
.btn-white {
    background: #fff;
    color: var(--secondary);
    border-color: #fff;
}
.btn-white:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
}
.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
    background: #fff;
    color: var(--secondary);
    transform: translateY(-2px);
}
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 42px; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }

/* --- Homepage Three Actions --- */
.home-actions {
    padding: 80px 0;
    background: var(--bg);
}
.actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.action-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
}
.action-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.action-card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}
.action-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.action-card:hover .action-card-image img { transform: scale(1.05); }
.action-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}
.action-card-body {
    padding: 32px 24px;
}
.action-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -60px auto 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.action-card-icon i {
    font-size: 1.6rem;
    color: var(--text-on-primary);
}
.action-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text);
}
.action-card p {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 1rem;
}

/* --- Section Styles --- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--text);
    margin-bottom: 12px;
}
.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}
.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
    margin: 16px auto 0;
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}
.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--bg-alt);
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-sale { background: var(--danger); color: #fff; }
.badge-featured { background: var(--primary); color: var(--text-on-primary); }
.badge-seasonal { background: var(--success); color: #fff; }
.badge-new { background: var(--secondary); color: var(--text-on-secondary); }

.product-quick-add {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transform: translateY(100%);
    transition: var(--transition);
}
.product-card:hover .product-quick-add { transform: translateY(0); }

.product-info {
    padding: 20px;
}
.product-category-tag {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    font-family: 'Oswald', sans-serif;
}
.product-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 6px 0 8px;
    color: var(--text);
    text-transform: uppercase;
}
.product-name a:hover { color: var(--primary); }
.product-price {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}
.product-price .original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.95rem;
    margin-left: 8px;
}

/* --- Product Detail Page --- */
.product-detail { padding: 60px 0; }
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.product-gallery {
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-alt);
}
.product-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.product-detail-info h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}
.product-detail-price {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}
.product-detail-desc {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 28px;
}
.product-options { margin-bottom: 28px; }
.product-options label {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.size-options, .color-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.size-btn, .color-btn {
    padding: 10px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}
.size-btn:hover, .size-btn.active,
.color-btn:hover, .color-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--text-on-primary);
}
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 28px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    display: inline-flex;
}
.quantity-selector button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text);
    transition: var(--transition);
}
.quantity-selector button:hover { background: var(--bg-alt); }
.quantity-selector input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    background: transparent;
}
.quantity-selector input:focus { outline: none; }

/* --- Cart Page --- */
.cart-section { padding: 60px 0; }
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}
.cart-items { }
.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-alt);
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
}
.cart-item-meta { color: var(--text-light); font-size: 0.85rem; margin-top: 4px; }
.cart-item-price {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}
.cart-item-remove {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 8px;
    cursor: pointer;
}
.cart-item-remove:hover { color: var(--danger); }

.cart-summary {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}
.cart-summary h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1rem;
}
.cart-summary-row.total {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--border);
    color: var(--primary);
}
.promo-input {
    display: flex;
    gap: 8px;
    margin: 20px 0;
}
.promo-input input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
}
.promo-input input:focus { outline: none; border-color: var(--primary); }

/* --- Checkout --- */
.checkout-section { padding: 60px 0; }
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: start;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--card-bg);
    color: var(--text);
    transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* --- Fundraising --- */
.fundraiser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}
.fundraiser-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.fundraiser-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.fundraiser-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.fundraiser-card-image img { width: 100%; height: 100%; object-fit: cover; }
.fundraiser-card-body { padding: 24px; }
.fundraiser-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.fundraiser-org {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.fundraiser-progress {
    margin: 16px 0;
}
.progress-bar {
    height: 8px;
    background: var(--bg-alt);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 4px;
    transition: width 0.6s ease;
}
.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
}
.progress-text strong { color: var(--primary); }

/* --- Video Section --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 28px;
}
.video-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.video-wrapper {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}
.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.video-card-info { padding: 16px 20px; }
.video-card-info h4 {
    font-size: 1rem;
    font-weight: 600;
}

/* --- About / Mission --- */
.mission-section {
    position: relative;
    padding: 100px 0;
    background: var(--secondary);
    color: var(--text-on-secondary);
    text-align: center;
    overflow: hidden;
}
.mission-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.mission-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.mission-content h2 { font-size: 2.5rem; margin-bottom: 24px; }
.mission-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
}
.mission-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.mission-icon i { font-size: 2rem; color: var(--text-on-primary); }

/* --- Contact Form --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.contact-info-cards {
    display: grid;
    gap: 20px;
}
.contact-info-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
}
.contact-info-card .icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info-card .icon-wrap i { color: var(--text-on-primary); font-size: 1.2rem; }

/* --- Page Header (internal pages) --- */
.page-header {
    position: relative;
    padding: 60px 0;
    background: var(--secondary);
    text-align: center;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    opacity: 0.1;
}
.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-on-secondary);
    position: relative;
}
.page-header .breadcrumb {
    position: relative;
    margin-top: 12px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}
.page-header .breadcrumb a { color: var(--primary); }
.page-header .breadcrumb a:hover { text-decoration: underline; }

/* --- Featured Products Carousel Area --- */
.featured-section {
    padding: 80px 0;
    background: var(--bg-alt);
}

/* --- Shop Filters --- */
.shop-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
    transition: var(--transition);
    cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--text-on-primary);
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 80px 24px;
}
.empty-state i { font-size: 4rem; color: var(--border); margin-bottom: 20px; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 12px; }
.empty-state p { color: var(--text-light); margin-bottom: 24px; }

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    top: 100px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    padding: 14px 24px;
    border-radius: var(--radius);
    color: #fff;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
}
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--primary); color: var(--text-on-primary); }

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 404 Page --- */
.error-page {
    text-align: center;
    padding: 120px 24px;
}
.error-page h1 {
    font-size: 8rem;
    color: var(--primary);
    line-height: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-wave { margin-bottom: -2px; line-height: 0; }
.footer-wave svg { width: 100%; height: 100px; }
.site-footer { background: var(--footer-bg); color: var(--footer-text); }
.footer-main { padding: 60px 0 40px; }

/* Desktop: 5 columns */
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

/* Brand column */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.footer-logo img {
    width: 180px;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}
.footer-tagline {
    margin-top: 16px;
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.6;
}
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--primary);
    color: var(--text-on-primary);
    transform: translateY(-3px);
}

/* Link columns */
.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: 0.1em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: var(--transition);
}
.footer-col a:hover { opacity: 1; color: var(--primary); padding-left: 4px; }

/* Contact column */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.7;
}
.footer-contact li i {
    margin-top: 4px;
    color: var(--primary);
    opacity: 1;
    width: 16px;
    flex-shrink: 0;
}

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom p { font-size: 0.85rem; opacity: 0.6; }
.footer-payments {
    display: flex;
    gap: 12px;
    font-size: 1.6rem;
    opacity: 0.5;
}

/* --- Loading Spinner --- */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    /* Footer: brand full width, then 3 cols */
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
    .footer-brand {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
        padding-bottom: 8px;
    }
    .footer-logo img { width: 160px; height: auto; border-radius: 0; }
    .footer-social { justify-content: center; }

    .product-detail-grid { grid-template-columns: 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: var(--header-bg);
        z-index: 999;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 24px 24px;
        transition: var(--transition);
    }
    .main-nav.active { right: 0; }
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .nav-list > li > a {
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1.1rem;
    }
    .nav-list > li > a::after { display: none; }
    .dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,0.05);
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.3s ease;
    }
    .has-dropdown.open .dropdown { max-height: 500px; padding: 8px 0; }
    .dropdown a { color: var(--header-text); padding: 10px 20px; }
    .dropdown a:hover { background: rgba(255,255,255,0.1); }

    .actions-grid { grid-template-columns: 1fr; }
    .hero { min-height: 500px; }
    .hero-content h1 { font-size: 2.2rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-wave { display: none; }

    /* Footer mobile: brand full width, links 2x2 grid */
    .footer-main { padding: 16px 0 24px; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
    }
    .footer-brand {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
        padding-bottom: 8px;
    }

    .footer-logo img { width: 90%; max-width: 340px; height: auto; border-radius: 0; margin: 0 auto; }
    .footer-social { justify-content: center; }

    .footer-bottom .container { flex-direction: column; gap: 12px; text-align: center; }
    .fundraiser-grid { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .header-inner { height: 65px; }
    .logo img { width: 45px; height: 45px; }
    .logo-name { font-size: 1.2rem; }
    .section { padding: 50px 0; }
    .hero { min-height: 400px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-image { height: 180px; }
    .product-info { padding: 12px; }
    .product-name { font-size: 0.95rem; }

    /* Footer mobile small: keep 2 col links, tighten spacing */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
    .footer-logo img { width: 85%; max-width: 300px; height: auto; border-radius: 0; margin: 0 auto; }
    .footer-col h4 { font-size: 0.9rem; margin-bottom: 12px; }
    .footer-col ul { gap: 8px; }
    .footer-col a { font-size: 0.85rem; }
}
