/* --- 1. VARIABLES & RESET --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

:root {
  --primary: #ff4500;       /* Sale Red */
  --dark: #0f172a;          /* Slate 900 */
  --light: #f8fafc;         /* Slate 50 */
  --price-green: #15803d;   /* Deep Green */
  --border: #e2e8f0;
  --text-main: #334155;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: var(--text-main);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: all 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- 2. HEADER --- */
.site-header {
  background: var(--dark);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 4px solid var(--primary);
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.site-logo { font-size: 1.5rem; font-weight: 900; letter-spacing: -1px; text-transform: uppercase; }
.site-logo .highlight { color: var(--primary); }

.nav-list { display: flex; gap: 20px; }
.nav-list a { color: #94a3b8; font-weight: 600; font-size: 0.9rem; transition: color 0.2s; }
.nav-list a:hover { color: white; }

.btn-cta {
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* --- 3. GLOBAL LAYOUT --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.section-title { 
  font-size: 1.8rem; 
  color: var(--dark); 
  margin: 60px 0 30px; 
  text-align: left;
  font-weight: 800;
}
.text-center { text-align: center; }

/* --- 4. HERO SECTION --- */
.home-hero {
  background: white;
  text-align: center;
  padding: 80px 20px 40px;
}
.home-hero h1 { color: var(--dark); font-size: 3.5rem; font-weight: 900; letter-spacing: -2px; margin-bottom: 15px; }
.home-hero p { font-size: 1.1rem; color: #64748b; }

/* --- 5. CATEGORY PILLS --- */
.category-pills {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 60px;
}
.pill {
  background: white;
  color: var(--dark);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--dark);
  text-transform: uppercase;
}
.pill:hover {
  background: var(--dark);
  color: white;
  transform: translateY(-2px);
}

/* --- 6. HOME PAGE: LATEST DEALS (List View) --- */
.latest-deals-container {
  max-width: 900px;
  margin: 60px auto; /* Adds spacing above the whole block */
}

.deal-row {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 25px 0;
  border-bottom: 1px solid #eee;
  transition: transform 0.2s;
}
.deal-row:hover { transform: translateX(5px); }

.deal-row-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  background-color: #f1f5f9;
  border-radius: 6px;
  flex-shrink: 0;
}

.deal-row-content { flex-grow: 1; }

.deal-row-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.deal-row-price { font-size: 1.4rem; font-weight: 900; color: var(--dark); display: block; }
.deal-row-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #64748b; margin-top: 5px; display: block; }

/* --- 7. RETAILER GRID --- */
.retailer-section { max-width: 900px; margin: 0 auto 80px; }
.retailer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.retailer-card { text-align: center; display: block; }
.retailer-box {
  background: #334155; 
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  transition: background 0.2s, transform 0.2s;
  border-radius: 6px;
}
.retailer-card:hover .retailer-box { background: var(--primary); transform: translateY(-3px); }
.retailer-name { font-weight: 700; font-size: 0.9rem; color: var(--dark); text-transform: uppercase; }

/* --- 8. HUB & CATEGORY GRIDS (4 Columns) --- */
.hub-header { 
  text-align: center; 
  padding: 60px 20px; 
  border-bottom: 1px solid #eee;
  margin-bottom: 40px;
  background: #fafafa; /* Slight gray to separate header */
}
.hub-header h1 { font-size: 2.5rem; color: var(--dark); margin-bottom: 10px; }
.hub-header p { color: #64748b; max-width: 600px; margin: 0 auto; }

.grid-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 25px;
  margin-top: 20px;
}

.deal-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  border-color: var(--primary);
}

.card-image-wrapper {
    height: 160px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 15px;
    background: #f1f5f9;
}
.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.deal-card:hover .card-image-wrapper img { transform: scale(1.05); }

.price-badge {
  background: #ecfdf5;
  color: var(--price-green);
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.deal-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 15px;
  color: var(--text-main);
  min-height: 55px; /* Alignment fix */
  text-transform: capitalize;
}

.btn-card {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: auto;
  display: block;
}
.deal-card:hover .btn-card { background: var(--primary); }

.hub-seo-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 30px;
    background: #f8fafc;
    border-radius: 8px;
    color: #475569;
}

/* --- 9. DEAL PAGE SPECIFICS --- */
.deal-page { max-width: 800px; margin: 40px auto; padding: 0 20px; }
.sticky-deal-bar {
  background: var(--dark); color: white;
  padding: 15px 20px;
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.deal-price-sticky { font-size: 1.5rem; font-weight: 700; color: #4ade80; }

.deal-header h1 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 10px; color: var(--dark); margin-top: 40px; }
.meta-tags { color: #64748b; font-size: 0.85rem; text-transform: uppercase; font-weight: 600; margin-bottom: 30px; }

.deal-section { margin-bottom: 40px; }
.deal-section h2 { color: var(--dark); margin-bottom: 15px; font-size: 1.5rem; }
.deal-section p { color: #334155; font-size: 1.05rem; margin-bottom: 15px; }

.btn-buy-large {
  display: block;
  width: 100%;
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 18px;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 4px;
  margin-top: 20px;
}
.deal-footer { 
    background: #f1f5f9; 
    padding: 30px; 
    border-radius: 8px; 
    text-align: center; 
}

/* --- 10. ANIMATIONS --- */
@keyframes pulsate {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

.expiry-label {
  color: #d97706; /* Amber */
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  float: right;
  animation: pulsate 2s infinite ease-in-out;
}

.tag-hot {
  color: #ef4444;
  font-weight: 900;
  font-size: 0.7rem;
  text-transform: uppercase;
  float: right;
  border: 1px solid #fee2e2;
  padding: 2px 6px;
  background: #fef2f2;
}

@keyframes slide-underline {
  from { width: 0%; }
  to { width: 100%; }
}
.new-deal-tag {
  color: #16a34a; /* Green */
  font-weight: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  float: right;
  margin-left: 10px;
}
.new-deal-tag::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: #16a34a;
  position: absolute;
  bottom: -2px;
  left: 0;
  animation: slide-underline 1s ease-out forwards;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .grid-layout, .retailer-grid { grid-template-columns: repeat(2, 1fr); }
  .latest-deals-container { padding: 0 20px; }
  .home-hero h1 { font-size: 2.5rem; }
}
@media (max-width: 600px) {
  .grid-layout, .retailer-grid { grid-template-columns: 1fr; }
  .deal-row { flex-direction: column; text-align: center; }
  .deal-row-image { width: 100%; height: 200px; }
  .nav-list { display: none; }
}

/* --- HUB SEO CONTENT (Bottom Container) --- */
.hub-seo-container {
    max-width: 900px;
    margin: 0 auto 80px; /* Centered with bottom spacing */
    background-color: #f8fafc; /* Very light gray to separate from white background */
    padding: 60px 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center; /* As per your design vibes */
}

.hub-seo-container h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 20px;
    font-weight: 800;
}

.hub-seo-container p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.7;
}

.hub-seo-container ul {
    text-align: left; /* Keep lists readable */
    display: inline-block; /* Centers the list block itself */
    margin: 20px 0;
    color: #475569;
}

.hub-seo-container li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.hub-seo-container strong {
    color: var(--dark);
    font-weight: 700;
}

/* --- NEW DEAL PAGE HERO STYLES --- */
.deal-hero-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 2px solid var(--dark);
    padding: 20px 30px;
    border-radius: 8px;
    margin: 25px 0 35px; /* Spacing above/below */
    box-shadow: 0 4px 0 rgba(15, 23, 42, 0.1); /* Subtle 3D effect */
}

.hero-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--price-green);
    letter-spacing: -1px;
}

.hero-btn {
    background: var(--primary);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 12px 30px;
    border-radius: 6px;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.4);
    background: #ea3e00; /* Slightly darker orange */
}

.deal-main-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Mobile: Stack them */
@media (max-width: 600px) {
    .deal-hero-action {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .hero-btn { width: 100%; }
}