/*
Theme Name: DealVault
Theme URI: https://dealvault.com
Author: DealVault Team
Author URI: https://dealvault.com
Description: Modern deals and discounts theme featuring buy 2 get 1 free offers, 2-for-1 specials, and exclusive promotions.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dealvault
Tags: one-column, custom-menu, featured-images, theme-options, translation-ready, blog, e-commerce
*/

:root {
  --black: #0a0a0a;
  --white: #faf9f7;
  --cream: #f5f2ed;
  --orange: #ff5e3a;
  --orange-dark: #e54d2a;
  --mint: #b8e6d4;
  --yellow: #ffe156;
  --text: #2d2d2d;
  --text-light: #6b6b6b;
  --border: #e0ddd8;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background: var(--white); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.serif { font-family: 'Instrument Serif', Georgia, serif; }
.handwritten { font-family: 'Covered By Your Grace', cursive; }

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 999; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; background: rgba(250, 249, 247, 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-logo { font-family: 'Instrument Serif', serif; font-size: 1.6rem; font-weight: 400; display: flex; align-items: center; gap: 0.5rem; }
.logo-dot { width: 10px; height: 10px; background: var(--orange); border-radius: 50%; display: inline-block; }
.main-navigation { display: flex; gap: 2.5rem; align-items: center; }
.main-navigation ul { display: flex; gap: 2.5rem; align-items: center; }
.main-navigation a { font-size: 0.95rem; font-weight: 400; color: var(--text-light); transition: color 0.2s; position: relative; }
.main-navigation a:hover { color: var(--black); }
.main-navigation .current-menu-item a { color: var(--black); }
.main-navigation .current-menu-item a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px; background: var(--orange); }

.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 500; border: none; border-radius: 100px; cursor: pointer; transition: all 0.25s ease; }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #222; transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: white; }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1.5px solid var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }

.hero-section { min-height: 100vh; padding: 8rem 2rem 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; max-width: 1400px; margin: 0 auto; align-items: center; }
.hero-left { position: relative; }
.hero-tag { font-family: 'Covered By Your Grace', cursive; font-size: 1.4rem; color: var(--orange); transform: rotate(-3deg); display: inline-block; margin-bottom: 1rem; margin-left: -0.5rem; }
.hero-title { font-family: 'Instrument Serif', serif; font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 400; line-height: 1.05; margin-bottom: 1.5rem; }
.hero-title em { font-style: italic; color: var(--orange); }
.wavy-underline { position: relative; display: inline-block; }
.wavy-underline::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10'%3E%3Cpath d='M0 5 Q 12.5 0, 25 5 T 50 5 T 75 5 T 100 5' stroke='%23ffe156' stroke-width='3' fill='none'/%3E%3C/svg%3E") repeat-x; background-size: 50px 10px; }
.hero-description { font-size: 1.15rem; color: var(--text-light); max-width: 480px; margin-bottom: 2rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-stats { display: flex; gap: 3rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.stat { text-align: left; }
.stat-num { font-family: 'Instrument Serif', serif; font-size: 2.5rem; color: var(--black); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--text-light); margin-top: 0.25rem; }

.hero-right { position: relative; height: 600px; }
.deal-card { position: absolute; background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; width: 260px; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s; }
.deal-card:hover { transform: translateY(-8px) rotate(0deg) !important; box-shadow: 0 20px 40px rgba(0,0,0,0.12); z-index: 10; }
.deal-card.card-1 { top: 0; left: 0; transform: rotate(-4deg); z-index: 3; }
.deal-card.card-2 { top: 140px; right: 20px; transform: rotate(3deg); z-index: 2; }
.deal-card.card-3 { bottom: 60px; left: 40px; transform: rotate(-2deg); z-index: 1; }
.card-badge { position: absolute; top: -12px; right: -8px; padding: 0.4rem 0.8rem; border-radius: 100px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.badge-orange { background: var(--orange); color: white; }
.badge-mint { background: var(--mint); color: var(--black); }
.badge-yellow { background: var(--yellow); color: var(--black); }
.card-emoji { font-size: 2.5rem; margin-bottom: 0.75rem; }
.card-cat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-light); margin-bottom: 0.35rem; }
.card-title { font-family: 'Instrument Serif', serif; font-size: 1.2rem; margin-bottom: 0.5rem; line-height: 1.3; }
.card-desc { font-size: 0.85rem; color: var(--text-light); margin-bottom: 1rem; line-height: 1.5; }
.card-footer { display: flex; justify-content: space-between; align-items: center; }
.card-price { display: flex; align-items: baseline; gap: 0.5rem; }
.price-old { font-size: 0.85rem; color: var(--text-light); text-decoration: line-through; }
.price-new { font-size: 1.25rem; font-weight: 600; color: var(--orange); }
.card-btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
.deco-circle { position: absolute; border-radius: 50%; pointer-events: none; }
.deco-1 { width: 300px; height: 300px; background: var(--mint); opacity: 0.3; top: -50px; right: -80px; z-index: 0; }
.deco-2 { width: 150px; height: 150px; background: var(--yellow); opacity: 0.4; bottom: 100px; right: 150px; z-index: 0; }

.marquee-section { background: var(--black); color: var(--white); padding: 1rem 0; overflow: hidden; }
.marquee-track { display: flex; animation: marquee 30s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-item { display: flex; align-items: center; gap: 0.75rem; white-space: nowrap; padding: 0 2rem; font-size: 0.95rem; font-weight: 500; }
.marquee-item span { color: var(--orange); }

.section { padding: 6rem 2rem; max-width: 1400px; margin: 0 auto; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem; }
.section-title { font-family: 'Instrument Serif', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; line-height: 1.1; }
.section-title small { display: block; font-family: 'Outfit', sans-serif; font-size: 0.9rem; font-weight: 400; color: var(--text-light); margin-top: 0.5rem; }

.deals-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto; gap: 1.5rem; }
.deal-item { background: var(--cream); border-radius: 20px; padding: 2rem; position: relative; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; justify-content: space-between; }
.deal-item:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.deal-item.large { grid-column: span 8; grid-row: span 2; min-height: 400px; }
.deal-item.tall { grid-column: span 4; grid-row: span 2; min-height: 400px; }
.deal-item.wide { grid-column: span 6; }
.deal-item.small { grid-column: span 4; }
.deal-item.orange-bg { background: var(--orange); color: white; }
.deal-item.orange-bg .deal-cat, .deal-item.orange-bg .deal-desc { color: rgba(255,255,255,0.8); }
.deal-item.mint-bg { background: var(--mint); }
.deal-item.yellow-bg { background: var(--yellow); }
.deal-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.deal-emoji { font-size: 3rem; }
.deal-tag { padding: 0.35rem 0.75rem; background: rgba(0,0,0,0.1); border-radius: 100px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.deal-item.orange-bg .deal-tag { background: rgba(255,255,255,0.25); }
.deal-cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 0.5rem; }
.deal-name { font-family: 'Instrument Serif', serif; font-size: 1.5rem; line-height: 1.25; margin-bottom: 0.75rem; }
.deal-item.large .deal-name { font-size: 2rem; }
.deal-desc { font-size: 0.95rem; color: var(--text-light); line-height: 1.6; margin-bottom: 1.5rem; }
.deal-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.deal-savings { font-size: 0.85rem; }
.deal-savings strong { font-size: 1.25rem; color: var(--black); }
.deal-item.orange-bg .deal-savings strong { color: white; }

.categories-section { padding: 4rem 0; background: var(--cream); }
.categories-section .section-header { padding: 0 2rem; max-width: 1400px; margin: 0 auto 2rem; }
.categories-scroll { display: flex; gap: 1.5rem; padding: 0 2rem 1rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.categories-scroll::-webkit-scrollbar { display: none; }
.cat-card { flex: 0 0 200px; scroll-snap-align: start; background: var(--white); border-radius: 16px; padding: 1.75rem 1.5rem; text-align: center; border: 1px solid var(--border); transition: all 0.3s ease; cursor: pointer; }
.cat-card:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.cat-icon { width: 64px; height: 64px; margin: 0 auto 1rem; background: var(--cream); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; transition: all 0.3s ease; }
.cat-card:hover .cat-icon { background: var(--orange); transform: scale(1.1) rotate(-5deg); }
.cat-name { font-weight: 600; font-size: 1rem; margin-bottom: 0.25rem; }
.cat-count { font-size: 0.8rem; color: var(--text-light); }

.flash-section { background: var(--black); color: var(--white); position: relative; overflow: hidden; }
.flash-section::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 30%, rgba(255,94,58,0.15) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(184,230,212,0.1) 0%, transparent 50%); pointer-events: none; }
.flash-content { position: relative; z-index: 1; }
.flash-header { text-align: center; margin-bottom: 3rem; }
.flash-header .section-title { color: var(--white); }
.flash-subtitle { color: rgba(255,255,255,0.6); font-size: 1.1rem; margin-top: 0.75rem; }
.countdown { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; }
.countdown-box { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 1rem 1.5rem; text-align: center; min-width: 90px; backdrop-filter: blur(10px); }
.countdown-num { font-family: 'Instrument Serif', serif; font-size: 2.5rem; color: var(--yellow); line-height: 1; }
.countdown-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); margin-top: 0.5rem; }
.flash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.flash-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 1.5rem; backdrop-filter: blur(10px); transition: all 0.3s ease; }
.flash-card:hover { background: rgba(255,255,255,0.1); transform: scale(1.02); }
.flash-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.flash-card-title { font-family: 'Instrument Serif', serif; font-size: 1.25rem; }
.flash-tag { background: var(--orange); color: white; padding: 0.25rem 0.6rem; border-radius: 6px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.flash-card-desc { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 1.25rem; line-height: 1.5; }
.progress-wrap { margin-bottom: 1.25rem; }
.progress-bar { height: 6px; background: rgba(255,255,255,0.15); border-radius: 100px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--orange), var(--yellow)); border-radius: 100px; transition: width 0.5s ease; }
.progress-info { display: flex; justify-content: space-between; margin-top: 0.5rem; font-size: 0.75rem; color: rgba(255,255,255,0.5); }

.subscribe-section { background: var(--cream); }
.subscribe-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.subscribe-text .section-title { margin-bottom: 1rem; }
.subscribe-text p { color: var(--text-light); font-size: 1.05rem; line-height: 1.7; }
.subscribe-perks { display: flex; gap: 2rem; margin-top: 1.5rem; flex-wrap: wrap; }
.perk { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--text-light); }
.perk svg { color: var(--orange); flex-shrink: 0; }
.subscribe-form-wrap { background: var(--white); border-radius: 24px; padding: 2.5rem; box-shadow: 0 10px 40px rgba(0,0,0,0.06); }
.form-title { font-family: 'Instrument Serif', serif; font-size: 1.5rem; margin-bottom: 1.5rem; }
.subscribe-form { display: flex; flex-direction: column; gap: 1rem; }
.form-input { padding: 1rem 1.25rem; border: 1.5px solid var(--border); border-radius: 12px; font-family: 'Outfit', sans-serif; font-size: 1rem; transition: border-color 0.2s; }
.form-input:focus { outline: none; border-color: var(--orange); }
.form-note { font-size: 0.8rem; color: var(--text-light); text-align: center; margin-top: 0.5rem; }

.trust-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.trust-item { padding: 1rem; }
.trust-num { font-family: 'Instrument Serif', serif; font-size: 3rem; color: var(--black); line-height: 1; }
.trust-label { font-size: 0.9rem; color: var(--text-light); margin-top: 0.5rem; }
.partners { display: flex; justify-content: center; align-items: center; gap: 3rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.partner { font-family: 'Instrument Serif', serif; font-size: 1.35rem; color: var(--text-light); opacity: 0.5; transition: opacity 0.2s; }
.partner:hover { opacity: 0.8; }

.site-footer { background: var(--black); color: var(--white); padding: 5rem 2rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 3rem; max-width: 1400px; margin: 0 auto; }
.footer-brand .site-logo { color: var(--white); margin-bottom: 1.25rem; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.95rem; line-height: 1.7; max-width: 300px; }
.footer-col h5 { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.25rem; color: rgba(255,255,255,0.4); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 3rem; margin-top: 3rem; border-top: 1px solid rgba(255,255,255,0.1); max-width: 1400px; margin-left: auto; margin-right: auto; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.footer-legal { display: flex; gap: 2rem; }
.footer-legal a { color: rgba(255,255,255,0.4); font-size: 0.85rem; transition: color 0.2s; cursor: pointer; }
.footer-legal a:hover { color: var(--white); }

@media (max-width: 1024px) {
  .hero-section { grid-template-columns: 1fr; text-align: center; padding-top: 7rem; }
  .hero-right { display: none; }
  .hero-description { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .deals-grid { grid-template-columns: 1fr 1fr; }
  .deal-item.large, .deal-item.tall, .deal-item.wide, .deal-item.small { grid-column: span 1; grid-row: span 1; min-height: auto; }
  .subscribe-wrap { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-navigation { display: none; }
  .mobile-menu-toggle { display: block; }
  .hero-stats { flex-direction: column; gap: 1.5rem; align-items: center; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .deals-grid { grid-template-columns: 1fr; }
  .countdown { flex-wrap: wrap; }
  .countdown-box { min-width: 70px; padding: 0.75rem 1rem; }
  .countdown-num { font-size: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { max-width: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
  .partners { gap: 1.5rem; }
  .subscribe-perks { flex-direction: column; gap: 0.75rem; }
}

.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9999; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); cursor: pointer; }
.modal-container { position: relative; width: 100%; max-width: 800px; max-height: 90vh; background: var(--white); border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); overflow: hidden; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--text-light); background: var(--cream); border: none; border-radius: 50%; cursor: pointer; z-index: 10; transition: all 0.2s; line-height: 1; }
.modal-close:hover { color: var(--white); background: var(--orange); }
.modal-content { padding: 48px; max-height: 90vh; overflow-y: auto; }
.modal-content h1 { font-family: 'Instrument Serif', Georgia, serif; font-size: 2rem; font-weight: 400; color: var(--black); margin-bottom: 8px; }
.modal-content .last-updated { font-size: 14px; color: var(--text-light); font-style: italic; margin-bottom: 32px; }
.modal-content h2 { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.25rem; font-weight: 400; color: var(--black); margin-top: 32px; margin-bottom: 12px; }
.modal-content h3 { font-size: 1rem; font-weight: 600; color: var(--black); margin-top: 20px; margin-bottom: 8px; }
.modal-content p { font-size: 0.95rem; color: var(--text); line-height: 1.7; margin-bottom: 16px; }
.modal-content ul { margin-bottom: 16px; padding-left: 24px; }
.modal-content ul li { font-size: 0.95rem; color: var(--text); line-height: 1.6; margin-bottom: 8px; list-style: disc; }
.modal-content ul li strong { color: var(--black); }

.cookie-banner { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--black); padding: 20px; z-index: 9998; box-shadow: 0 -4px 20px rgba(0,0,0,0.15); }
.cookie-banner-content { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cookie-banner-content p { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin: 0; flex: 1; }
.cookie-banner-content a { color: var(--orange); }
.cookie-banner-buttons { display: flex; gap: 12px; }
.cookie-btn { padding: 10px 24px; border-radius: 100px; font-size: 0.85rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; }
.cookie-btn.accept { background: var(--orange); color: #fff; }
.cookie-btn.accept:hover { background: var(--orange-dark); }
.cookie-btn.decline { background: transparent; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.3); }
.cookie-btn.decline:hover { background: rgba(255,255,255,0.1); }

@media (max-width: 768px) {
  .modal-content { padding: 32px 24px; }
  .modal-content h1 { font-size: 1.5rem; }
  .cookie-banner-content { flex-direction: column; text-align: center; }
  .cookie-banner-buttons { width: 100%; justify-content: center; }
}
