/* ===========================
   Announcement Bar
   =========================== */
.announcement-bar {
    background: var(--secondary-green);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
    height: 36px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
}

/* Push navbar below the announcement bar */
.navbar {
    top: 36px !important;
}

/* Push hero/page content down to account for both bar + navbar */
.hero {
    padding-top: calc(72px + 36px) !important;
}

/* For inner pages that use collections-hero */
.collections-hero,
.product-page {
    padding-top: calc(72px + 36px) !important;
}

/* Category pill nav also needs offset on inner pages */
body > .announcement-bar + header + div,
body > .announcement-bar + nav + div {
    margin-top: 0;
}


.announcement-track {
    display: flex;
    animation: announcementScroll 28s linear infinite;
    white-space: nowrap;
    gap: 0;
}

.announcement-track:hover {
    animation-play-state: paused;
}

.announcement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 48px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--ivory-sand);
    text-transform: uppercase;
    white-space: nowrap;
}

.announcement-item a {
    color: var(--champagne-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.announcement-dot {
    color: var(--champagne-gold);
    font-size: 8px;
}

@keyframes announcementScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===========================
   Hero Entrance Animations
   =========================== */
@keyframes heroFadeSlideLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes heroFadeSlideRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

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

@keyframes pulseSlow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212,175,55,0.4); }
    50%       { transform: scale(1.03); box-shadow: 0 0 0 8px rgba(212,175,55,0); }
}

.hero-eyebrow  { animation: heroFadeSlideLeft 0.7s ease both; animation-delay: 0.1s; }
.hero-title    { animation: heroFadeSlideLeft 0.7s ease both; animation-delay: 0.25s; }
.hero-divider  { animation: heroFadeUp 0.6s ease both; animation-delay: 0.4s; }
.hero-subtitle { animation: heroFadeUp 0.6s ease both; animation-delay: 0.5s; }
.hero-badges   { animation: heroFadeUp 0.6s ease both; animation-delay: 0.65s; }
.hero-ctas     { animation: heroFadeUp 0.6s ease both; animation-delay: 0.8s; }
.hero-image    { animation: heroFadeSlideRight 0.9s ease both; animation-delay: 0.3s; }

.hero-offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--champagne-gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
    animation: heroFadeSlideLeft 0.7s ease both, pulseSlow 3s ease-in-out 1.5s infinite;
}

.hero-offer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--champagne-gold);
    animation: pulseSlow 1.5s ease-in-out infinite;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ivory-sand);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s, gap 0.2s;
    cursor: pointer;
    background: none;
    border: none;
}

.hero-cta-secondary:hover {
    opacity: 1;
    gap: 12px;
}

/* ===========================
   Shop by Category Section
   =========================== */
.shop-by-category {
    padding: 80px 0 60px;
    background: var(--ivory-sand);
}

.shop-by-category .section-header {
    margin-bottom: 48px;
}

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

.category-tile {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    group: true;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    text-decoration: none;
    display: block;
    background: var(--secondary-green);
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.18);
}

.category-tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-tile:hover .category-tile-img {
    transform: scale(1.06);
}

.category-tile-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    transition: background 0.35s ease;
}

.category-tile:hover .category-tile-overlay {
    background: transparent;
}

.category-tile-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px;
    color: white;
}

.category-tile-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.02em;
    display: block;
    margin-bottom: 4px;
}

.category-tile-count {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
    display: block;
    margin-bottom: 12px;
}

.category-tile-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--champagne-gold);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.category-tile:hover .category-tile-cta {
    opacity: 1;
    transform: translateY(0);
}

/* Featured large tile */
.category-tile.featured {
    grid-row: span 1;
}

/* ===========================
   Trust Metrics Bar
   =========================== */
.trust-metrics-bar {
    background: var(--primary-green);
    padding: 28px 0;
    border-top: 1px solid rgba(212,175,55,0.1);
    border-bottom: 1px solid rgba(212,175,55,0.1);
}

.trust-metrics-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 24px;
}

.trust-metric {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--ivory-sand);
}

.trust-metric-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    stroke: var(--champagne-gold);
}

.trust-metric-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--ivory-sand);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.trust-metric-text span {
    font-size: 11px;
    color: var(--footer-muted);
    letter-spacing: 0.05em;
}

.trust-metric-divider {
    width: 1px;
    height: 40px;
    background: rgba(212,175,55,0.2);
}

/* ===========================
   Bestsellers with Tabs
   =========================== */
.bestsellers-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 56px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.bestsellers-tab {
    padding: 12px 28px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.bestsellers-tab:hover {
    color: var(--text-dark);
}

.bestsellers-tab.active {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
    font-weight: 600;
}

/* Wishlist + Quick View on Product Cards */
.product-card {
    position: relative;
}

.product-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: all 0.2s ease;
    opacity: 0;
    transform: scale(0.8);
}

.product-card:hover .product-wishlist-btn {
    opacity: 1;
    transform: scale(1);
}

.product-wishlist-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-wishlist-btn.active svg {
    fill: #e53935;
    stroke: #e53935;
}

.product-quickview-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(14, 59, 53, 0.92);
    color: var(--champagne-gold);
    border: none;
    padding: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-image:hover .product-quickview-btn,
.product-card:hover .product-quickview-btn {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Promo Banner
   =========================== */
.promo-banner {
    position: relative;
    overflow: hidden;
    background: var(--secondary-green);
    min-height: 260px;
    display: flex;
    align-items: center;
}

.promo-banner-bg {
    position: absolute;
    inset: 0;
    background-image: url('../Green-background.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
}

.promo-banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    padding: 60px 24px;
}

.promo-banner-eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--champagne-gold);
    margin-bottom: 16px;
}

.promo-banner-title {
    font-family: var(--font-heading);
    font-size: 52px;
    color: var(--ivory-sand);
    font-weight: 400;
    margin-bottom: 24px;
    line-height: 1.1;
}

.promo-banner-sub {
    font-size: 16px;
    color: var(--footer-muted);
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   Instagram Grid
   =========================== */
.instagram-section {
    padding: 100px 0;
    background: var(--ivory-light);
}

.instagram-header {
    text-align: center;
    margin-bottom: 48px;
}

.instagram-handle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    margin-top: 12px;
    transition: opacity 0.2s;
}

.instagram-handle:hover { opacity: 0.7; }

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.instagram-tile {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border-radius: 4px;
    background: var(--image-fallback);
}

.instagram-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.instagram-tile:hover img {
    transform: scale(1.08);
}

.instagram-tile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14,59,53,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-tile:hover .instagram-tile-overlay {
    opacity: 1;
}

.instagram-tile-overlay svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* ===========================
   Newsletter Upgrade
   =========================== */
.newsletter {
    position: relative;
    overflow: hidden;
    background: var(--primary-green);
}

.newsletter-bg {
    position: absolute;
    inset: 0;
    background-image: url('../Green-background.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.12;
}

.newsletter-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 100px 24px;
    max-width: 640px;
    margin: 0 auto;
}

.newsletter-eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--champagne-gold);
    margin-bottom: 16px;
    display: block;
}

.newsletter-title {
    font-family: var(--font-heading);
    font-size: 48px;
    color: var(--ivory-sand);
    font-weight: 400;
    margin-bottom: 16px;
}

.newsletter-subtitle {
    color: var(--footer-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.newsletter-form {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto 24px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 16px 20px;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 14px;
    background: rgba(255,255,255,0.96);
    color: var(--text-dark);
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

.newsletter-form .btn-primary {
    border-radius: 0;
    border: none;
    background: var(--champagne-gold);
    color: var(--primary-green);
    white-space: nowrap;
    font-weight: 700;
    padding: 16px 28px;
}

.newsletter-form .btn-primary:hover {
    background: var(--soft-gold-hover);
    transform: none;
    box-shadow: none;
}

.newsletter-promise {
    font-size: 12px;
    color: var(--footer-muted);
    opacity: 0.7;
}

/* ===========================
   Responsive: New Sections
   =========================== */
@media (max-width: 1024px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .instagram-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .instagram-grid { grid-template-columns: repeat(3, 1fr); }
    .trust-metrics-inner { flex-wrap: wrap; gap: 20px; justify-content: center; }
    .trust-metric-divider { display: none; }
    .bestsellers-tabs { overflow-x: auto; justify-content: flex-start; padding: 0 16px; }
    .bestsellers-tab { white-space: nowrap; padding: 12px 16px; }
    .promo-banner-title { font-size: 36px; }
    .hero-ctas { flex-direction: column; align-items: flex-start; }
    .announcement-bar { height: 32px; }
}

@media (max-width: 480px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .instagram-grid { grid-template-columns: repeat(3, 1fr); }
}
