/* ============================================
   🍦 LIGHTWEIGHT ICE-CREAM SECTION
   Optimized for blazing-fast performance
   ============================================ */

/* CSS VARIABLES */
:root {
    --ice-section-bg: #fef5f9;
    --ice-card-bg: rgba(255, 255, 255, 0.95);
    --ice-card-border: rgba(255, 182, 193, 0.3);
    --ice-card-shadow: rgba(255, 107, 157, 0.15);
    --ice-primary: #ff6b9d;
    --ice-secondary: #c44569;
    --ice-text: #2c1a2c;
    --ice-scrollbar-track: rgba(255, 182, 193, 0.1);
    --ice-btn-bg: rgba(255, 255, 255, 0.8);
}

.sublime-navbar.dark-mode ~ .ice-cream-section {
    --ice-section-bg: #1a1520;
    --ice-card-bg: rgba(42, 35, 42, 0.95);
    --ice-card-border: rgba(255, 182, 193, 0.2);
    --ice-card-shadow: rgba(0, 0, 0, 0.4);
    --ice-primary: #ffb6c1;
    --ice-secondary: #ff69b4;
    --ice-text: #ffffff;
    --ice-scrollbar-track: rgba(255, 182, 193, 0.05);
    --ice-btn-bg: rgba(42, 35, 42, 0.8);
}

/* ============================================
   MAIN SECTION
   ============================================ */
.ice-cream-section {
    padding: 20px 20px 40px 20px;
    background: var(--ice-section-bg);
    max-width: 1600px;
    margin: 0 auto;
}

/* ============================================
   HEADER
   ============================================ */
.ice-cream-header {
    text-align: center;
    margin-bottom: 20px;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ice-cream-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    background: linear-gradient(135deg, var(--ice-primary) 0%, var(--ice-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    margin: 0;
}

/* ============================================
   SCROLL CONTAINER
   ============================================ */
.ice-cream-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.ice-cream-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--ice-primary) transparent;
    padding: 20px 0 30px 0;
    margin: 0 60px;
}

/* Custom Scrollbar */
.ice-cream-scroll::-webkit-scrollbar {
    height: 8px;
}

.ice-cream-scroll::-webkit-scrollbar-track {
    background: var(--ice-scrollbar-track);
    border-radius: 10px;
}

.ice-cream-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--ice-primary), var(--ice-secondary));
    border-radius: 10px;
}

.ice-cream-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, var(--ice-secondary), var(--ice-primary));
}

/* ============================================
   PRODUCT TRACK
   ============================================ */
.ice-cream-track {
    display: flex;
    gap: 20px;
    padding: 0 20px;
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.ice-cream-card {
    flex: 0 0 180px;
    width: 180px;
    background: var(--ice-card-bg);
    border-radius: 24px;
    padding: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, 
              box-shadow 0.25s ease, 
              border-color 0.25s ease !important;
    border: 2px solid var(--ice-card-border);
    box-shadow: 0 8px 32px var(--ice-card-shadow);
}

.ice-cream-card:hover {
     transform: translateY(-4px) !important; /* no scale */
  box-shadow: var(--s-hover) !important;
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.35);
}
.ice-cream-scroll,
.main-course-scroll {
  will-change: scroll-position;
  -webkit-overflow-scrolling: touch;
}

.sublime-navbar.dark-mode ~ .ice-cream-section .ice-cream-card:hover {
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.5);
}

.ice-cream-card:active {
    transform: translateY(-8px) scale(1.02);
}

/* ============================================
   PRODUCT BADGE
   ============================================ */
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--ice-primary), var(--ice-secondary));
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

.new-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ============================================
   PRODUCT IMAGE
   ============================================ */
.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.2), rgba(255, 255, 255, 0.1));
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ice-cream-card:hover .product-image {
    transform: scale(1.15);
}



/* ============================================
   PRODUCT INFO
   ============================================ */
.product-info {
    text-align: center;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--ice-text);
    margin: 0 0 8px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.ice-cream-card:hover .product-name {
    color: var(--ice-primary);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.product-rating {
    font-size: 10px;
    letter-spacing: -1px;
}

.product-price {
    font-weight: 700;
    color: var(--ice-primary);
    font-size: 14px;
}

/* ============================================
   NAVIGATION ARROWS (Desktop Only)
   ============================================ */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--ice-btn-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--ice-card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--ice-primary);
    opacity: 0;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.2);
}

.ice-cream-container:hover .scroll-arrow {
    opacity: 1;
}

.scroll-arrow:hover {
    background: linear-gradient(135deg, var(--ice-primary), var(--ice-secondary));
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.scroll-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.scroll-arrow-left {
    left: 0;
}

.scroll-arrow-right {
    right: 0;
}

.scroll-arrow svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   SEE ALL BUTTON
   ============================================ */
.see-all-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.see-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--ice-btn-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--ice-card-border);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ice-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.2);
}

.see-all-btn:hover {
    background: linear-gradient(135deg, var(--ice-primary), var(--ice-secondary));
    transform: translateY(-3px) scale(1.05);
    color: white;
    border-color: transparent;
    box-shadow: 0 12px 40px rgba(255, 107, 157, 0.4);
}

.see-all-btn:hover svg {
    transform: translateX(5px);
}

.see-all-btn svg {
    transition: transform 0.3s ease;
}

/* ============================================
   📱 RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .scroll-arrow {
        display: none;
    }
    
    .ice-cream-scroll {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .ice-cream-section {
        padding: 20px 15px 25px 15px;
    }
    
    .ice-cream-header {
        margin-bottom: 15px;
    }
    
    .ice-cream-title {
        font-size: 28px;
    }
    
    .ice-cream-card {
        flex: 0 0 140px;
        width: 140px;
        padding: 12px;
    }
    
    .product-badge {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 12px;
    }
    
    .see-all-btn {
        padding: 14px 28px;
        font-size: 14px;
    }
    
    .ice-cream-track {
        gap: 15px;
        padding: 0 10px;
    }
    
    .see-all-container {
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .ice-cream-section {
        padding: 15px 10px 20px 10px;
    }
    
    .ice-cream-header {
        margin-bottom: 12px;
    }
    
    .ice-cream-title {
        font-size: 26px;
    }
    
    .ice-cream-scroll {
        padding: 15px 0 20px 0;
    }
    
    .ice-cream-card {
        flex: 0 0 130px;
        width: 130px;
        padding: 10px;
        border-radius: 20px;
    }
    
    .product-name {
        font-size: 13px;
    }
    
    .ice-cream-track {
        gap: 12px;
    }
    
    .see-all-container {
        margin-top: 10px;
    }
    
    .see-all-btn {
        padding: 12px 24px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .ice-cream-section {
        padding: 12px 8px 18px 8px;
    }
    
    .ice-cream-header {
        margin-bottom: 10px;
    }
    
    .ice-cream-title {
        font-size: 24px;
    }
    
    .ice-cream-scroll {
        padding: 12px 0 18px 0;
    }
    
    .ice-cream-card {
        flex: 0 0 120px;
        width: 120px;
    }
    
    .see-all-container {
        margin-top: 8px;
    }
    
    .see-all-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* ── Header layout fix ── */
.ice-cream-header {
  text-align: center;
  margin-bottom: 16px !important;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ── Title — neutral, not gold gradient ── */
.ice-cream-title {
  font-family: var(--font-display) !important;
  background: none !important;
  -webkit-text-fill-color: unset !important;
  color: var(--text) !important;
  font-style: italic !important;
  letter-spacing: -1px !important;
  margin: 0 !important;
}

/* ── Subtitle — sits cleanly below ── */
.ice-cream-subtitle {
  font-family: var(--font-ui);
  font-size: clamp(13px, 2vw, 15px);
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0;
  max-width: 480px;
}

/* ── Section bg — soft warm neutral, NOT gold ── */
.ice-cream-section {
  background: var(--surface) !important;
}

body.dark-mode .ice-cream-section {
  background: var(--surface) !important;
}

/* ── ice-pop — subtle, not screaming ── */
.ice-pop {
  color: var(--gold);
  font-weight: 600;
}

/* ── Card — clean neutral ── */
.ice-cream-card {
  background: var(--card) !important;
  border-color: var(--line) !important;
}

/* ── Card hover — only NOW gold appears ── */
.ice-cream-card:hover {
  border-color: var(--gold-glow) !important;
  box-shadow: var(--s-hover) !important;
}

/* ── See all button — gold only on hover ── */
.see-all-btn {
  background: var(--card) !important;
  border: 1px solid var(--line-md) !important;
  color: var(--text-2) !important;
  box-shadow: none !important;
}

.see-all-btn:hover {
  background: var(--gold) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 8px 24px var(--gold-glow) !important;
}

@media (max-width: 340px) {
  .ice-cream-subtitle { display: none !important; }
}
.ice-cream-section {
  background: #fde8f0 !important;
  border-top: 1px solid rgba(255,182,193,0.25);
  border-bottom: 1px solid rgba(255,182,193,0.25);
}

body.dark-mode .ice-cream-section {
  background: #231018 !important;
  border-top: 1px solid rgba(255,182,193,0.08);
  border-bottom: 1px solid rgba(255,182,193,0.08);
}
.ice-cream-card {
  position: relative !important;
}

.ice-cream-card .product-image-wrapper {
  position: relative !important;
}

.ice-cream-card .product-badge {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 2 !important;
}
/* icecream-section.css — bottom */
.icecream-section { background: var(--surface) !important; }
body.dark-mode .icecream-section { background: var(--surface) !important; }

