/* ============================================================================
   FLASH STARTING PAGE - COMPLETE CSS
   Organized by: Layout → Components → Interactive Elements → Responsive
   ============================================================================ */

/* ==========================================================================
   1. GLOBAL & RESET
   ========================================================================== */

.dual-section-container * {
    box-sizing: border-box;
}

/* ==========================================================================
   2. MAIN LAYOUT CONTAINER
   ========================================================================== */

.dual-section-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Desktop Layout - Side by Side */
@media (min-width: 769px) {
    .dual-section-container {
        flex-direction: row;
        align-items: stretch;
        gap: 32px;
    }
    
    .starting-section {
        order: 2;
        flex: 0 0 56%;
    }
    
    .flash-sale-section {
        order: 1;
        flex: 0 0 44%;
    }
}

/* Mobile Layout */
@media (max-width: 768px) {
    .dual-section-container {
        gap: 20px;
    }
}

/* ==========================================================================
   3. STARTING SECTION (WELCOME/SYNOPSIS)
   ========================================================================== */

.starting-section {
    background: linear-gradient(135deg, rgba(0,0,0,0.75), rgba(0,0,0,0.65)), 
                url("/home/bg.jpg") no-repeat center center;
    background-size: cover;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 0;
    padding: 28px 24px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Decorative Gradient Overlay */
.starting-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(102, 155, 188, 0.2), transparent 70%);
    pointer-events: none;
}

.starting-section .main_descrip {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Heading Styles */
.starting-section .main_descrip h1 {
    font-size: 2.4rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: white;
    margin-bottom: 6px;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.starting-section .main_descrip p {
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

/* ==========================================================================
   4. NAVIGATION BUTTON GRID
   ========================================================================== */

.btn-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
}

.btn-group a {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 14px 8px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

/* Hover Gradient Overlay */
.btn-group a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #669bbc, #003049);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.btn-group a:hover::before {
    opacity: 1;
}

.btn-group a:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

/* Button Icons */
.btn-group a i {
    font-size: 1.85rem;
    color: #669bbc;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-group a:hover i {
    color: white;
    transform: scale(1.15);
}

/* Button Text */
.btn-group a span {
    font-size: 0.82rem;
    font-weight: 600;
    color: #003049;
    text-align: center;
    line-height: 1.3;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-group a:hover span {
    color: white;
}

/* ============================================================================
   NEW FLASH SALE SECTION - OPTIMIZED (COMPACT DESIGN)
   Fixed: Content fits perfectly without increasing container height
   ============================================================================ */

/* ==========================================================================
   1. NEW FLASH SALE SECTION CONTAINER
   ========================================================================== */

.new-flash-sale-section {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   2. SECTION HEADER - COMPACT
   ========================================================================== */

.new-flash-header {
    padding: 12px 20px; /* Reduced from 14px */
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.new-flash-title {
    font-size: 23px;
    font-weight: 700;
    color: #e91e63;
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
}

.flash-bolt-icon {
    color: #ff9800;
    animation: boltPulse 1.5s infinite;
}

@keyframes boltPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.new-view-all {
    font-size: 15.5px;
    color: #e91e63;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.new-view-all:hover {
    color: #c2185b;
}

/* ==========================================================================
   3. CAROUSEL CONTAINER - ORIGINAL HEIGHT
   ========================================================================== */

.new-flash-carousel {
    position: relative;
    height: 380px; /* Original height maintained */
    overflow: hidden;
}

.new-flash-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

/* ==========================================================================
   4. FLASH CARD
   ========================================================================== */

.new-flash-card {
    min-width: 100%;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.new-flash-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(102, 126, 234, 0.25);
}

/* Out of Stock State */
.new-flash-card.out-of-stock {
    opacity: 0.6;
    pointer-events: none;
}

/* ==========================================================================
   5. IMAGE SECTION - REDUCED HEIGHT
   ========================================================================== */

.new-image-section {
    position: relative;
    height: 200px; /* Reduced from 240px */
    overflow: hidden;
    background: #fff;
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
}

.new-carousel-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.new-carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

/* Carousel Navigation Arrows - Slightly Larger */
.new-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
    z-index: 4;
}

.new-carousel-arrow.prev {
    left: 7px;
}

.new-carousel-arrow.next {
    right: 7px;
}

.new-carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.new-image-section:hover .new-carousel-arrow {
    opacity: 1;
}

/* ==========================================================================
   6. BADGES & OVERLAYS - COMPACT
   ========================================================================== */

/* Stock Out Badge */
.new-stock-out {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Prebook Badge - Slightly Larger */
.new-prebook-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #6b46c1, #9f7aea);
    color: white;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 28px;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    z-index: 10;
    box-shadow: 0 5px 18px rgba(107, 70, 193, 0.8);
    animation: prebookPulse 2.5s infinite ease-in-out;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    font-size: 0.85rem;
    max-width: 85%;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

@keyframes prebookPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 5px 18px rgba(107, 70, 193, 0.8);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.09);
        box-shadow: 0 8px 24px rgba(107, 70, 193, 1);
    }
}

/* Price Badge - Slightly Larger */
.new-price-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 9px;
    border-radius: 7px;
    font-size: 0.83rem;
    font-weight: 600;
    z-index: 3;
}

.new-price-badge .original-price {
    text-decoration: line-through;
    opacity: 0.8;
    margin-left: 4px;
    font-weight: normal;
    font-size: 0.77rem;
}

/* Rating Badge - Slightly Larger */
.new-rating-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 0.83rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 3;
}

.new-rating-badge i {
    color: #ffd700;
    font-size: 0.78rem;
}

/* ==========================================================================
   7. INFO SECTION - COMPACT & OPTIMIZED
   ========================================================================== */

.new-info-section {
    padding: 12px; /* Reduced from 18px 16px */
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px; /* Reduced from 8px */
    background: white;
    position: relative;
    min-height: 0;
}

/* Hover Dim Effect */
.new-flash-card:hover .new-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.03);
    pointer-events: none;
    border-radius: 0 0 12px 12px;
    z-index: 1;
}

.new-info-section > * {
    position: relative;
    z-index: 2;
}

/* Product Name Wrapper - Compact */
.new-name-wrapper {
    display: flex;
    align-items: center;
    gap: 5px; /* Reduced from 6px */
    margin-bottom: 2px; /* Reduced */
}

.new-product-name {
    font-size: 0.91rem;
    font-weight: 600;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.28;
    margin: 0;
}

/* Product Description - Slightly Larger */
.new-product-desc {
    font-size: 0.77rem;
    color: #666;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.32;
}

/* Icons - Slightly Larger */
.new-name-wrapper .featured-icon {
    color: #e91e63;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.new-name-wrapper .flash-icon {
    color: #ff9800;
    font-size: 0.95rem;
    animation: boltPulse 1.5s infinite;
    flex-shrink: 0;
}

/* ==========================================================================
   8. INTERACTIVE ACTIONS - COMPACT
   ========================================================================== */

.new-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    margin-bottom: 0;
    position: relative;
    z-index: 10;
}

/* Like/Dislike - Slightly Larger */
.new-like-dislike {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.8rem;
    color: #555;
}

.new-like-dislike .like-btn,
.new-like-dislike .dislike-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    cursor: pointer;
    border-radius: 18px;
    transition: all 0.3s ease;
    user-select: none;
}

.new-like-dislike .like-btn:hover {
    background: #e3f2fd;
    color: #1976d2;
}

.new-like-dislike .dislike-btn:hover {
    background: #ffebee;
    color: #c62828;
}

.new-like-dislike .like-btn.active {
    color: #1976d2;
    background: #e3f2fd;
    font-weight: 600;
}

.new-like-dislike .dislike-btn.active {
    color: #c62828;
    background: #ffebee;
    font-weight: 600;
}

/* Add to Cart - Slightly Larger */
.new-add-cart {
    background: #007bff;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.new-add-cart i {
    font-size: 0.95rem;
}

.new-add-cart:hover {
    background: #0056b3;
    transform: scale(1.08);
}

/* ==========================================================================
   9. FOOTER ROW - COMPACT
   ========================================================================== */

.new-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #444;
    padding-top: 5px; /* Reduced */
    margin-bottom: 36px; /* Space for View Details */
    position: relative;
    z-index: 2;
}

.new-footer-row .sold-delivery {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.new-footer-row .delivery-icon {
    color: #28a745;
    font-size: 0.88rem;
}

.new-footer-row .free-delivery {
    color: #28a745;
    font-weight: 600;
}

.new-footer-row .sold-count {
    color: #666;
}

.new-footer-row .min-qty {
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}

/* ==========================================================================
   10. VIEW DETAILS BUTTON - COMPACT
   ========================================================================== */

.new-view-details {
    position: absolute;
    bottom: 24px;
    left: 12px; /* Reduced from 16px */
    right: 12px;
    background: white;
    color: #764ba2;
    padding: 9px 18px;
    border-radius: 42px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.38);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px); /* Reduced */
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.new-flash-card:hover .new-view-details {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.new-view-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.45);
    color: #667eea;
}

.new-view-details i {
    font-size: 1rem;
}

/* ==========================================================================
   11. CAROUSEL DOTS - COMPACT
   ========================================================================== */

.new-flash-dots {
    position: absolute;
    bottom: 12px; /* Reduced from 18px */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
    z-index: 15;
    background: rgba(255, 255, 255, 0.85);
    padding: 5px 11px;
    border-radius: 18px;
    backdrop-filter: blur(4px);
}

.new-flash-dot {
    width: 11px;
    height: 11px;
    background: #333;
    opacity: 0.5;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.new-flash-dot.active {
    background: #e91e63;
    opacity: 1;
    transform: scale(1.35);
}

.new-flash-dot:hover {
    opacity: 0.8;
    transform: scale(1.2);
}

/* ==========================================================================
   12. RESPONSIVE - MOBILE
   ========================================================================== */

@media (max-width: 767px) {
    .new-flash-header {
        padding: 10px 14px;
    }
    
    .new-flash-title {
        font-size: 18px;
        gap: 8px;
    }
    
    .new-view-all {
        font-size: 13px;
    }
    
    .new-flash-carousel {
        height: 340px; /* Original mobile height */
    }
    
    .new-image-section {
        height: 170px; /* Reduced */
    }
    
    .new-info-section {
        padding: 10px;
        gap: 4px;
    }
    
    .new-product-name {
        font-size: 0.82rem;
        line-height: 1.2;
    }
    
    .new-product-desc {
        font-size: 0.7rem;
        line-height: 1.25;
    }
    
    .new-footer-row {
        font-size: 0.68rem;
        margin-bottom: 32px;
    }
    
    .new-view-details {
        padding: 7px 14px;
        font-size: 0.75rem;
        bottom: 8px;
        left: 10px;
        right: 10px;
    }
    
    .new-view-details i {
        font-size: 0.85rem;
    }
    
    .new-flash-dots {
        bottom: 10px;
        gap: 6px;
        padding: 3px 8px;
    }
    
    .new-flash-dot {
        width: 8px;
        height: 8px;
    }
    
    .new-prebook-badge {
        font-size: 0.7rem;
        padding: 6px 11px;
    }
    
    .new-like-dislike {
        font-size: 0.72rem;
        gap: 6px;
    }
    
    .new-like-dislike .like-btn,
    .new-like-dislike .dislike-btn {
        padding: 3px 6px;
    }
    
    .new-add-cart {
        width: 28px;
        height: 28px;
    }
    
    .new-add-cart i {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   13. RESPONSIVE - TABLET
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1199px) {
    .new-flash-header {
        padding: 11px 18px;
    }
    
    .new-flash-title {
        font-size: 20px;
    }
    
    .new-flash-carousel {
        height: 360px; /* Original tablet height */
    }
    
    .new-image-section {
        height: 190px;
    }
    
    .new-info-section {
        padding: 11px;
        gap: 4px;
    }
    
    .new-product-name {
        font-size: 0.85rem;
    }
    
    .new-product-desc {
        font-size: 0.73rem;
    }
    
    .new-footer-row {
        font-size: 0.7rem;
        margin-bottom: 34px;
    }
    
    .new-view-details {
        padding: 7px 15px;
        font-size: 0.78rem;
        bottom: 9px;
    }
    
    .new-flash-dots {
        bottom: 11px;
    }
    
    .new-prebook-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* ==========================================================================
   14. UTILITY
   ========================================================================== */

.new-like-dislike .like-btn,
.new-like-dislike .dislike-btn,
.new-add-cart,
.new-carousel-arrow,
.new-flash-dot {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ==========================================================================
   END
   ========================================================================== */