/* =============================
product section
============================= */
#product1{
    text-align: center;
}

/* product card */
.pro{
    width: 280px;
    min-width: 250px;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    margin: 15px 0;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    background: var(--white);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#product1 .pro:hover,
#new-arrivals .pro:hover,
#recently-viewed .pro:hover{
    transform: translateY(-10px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}

/* product images */
.product-image-wrapper{
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 16px;
    background: #f5f5f5;
    flex-shrink: 0;
}

.pro img{
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    transition: 0.35s ease-in-out;
    background: #f5f5f5;
}

#product1 .pro:hover img,
#new-arrivals .pro:hover img,
#recently-viewed .pro:hover img{
    transform: scale(1.03) rotate(0.7deg);
}

/* product description */
.pro .des{
    text-align: start;
    padding: 14px 0;
    flex-grow: 1;
}

.pro .des span{
    color: #606063;
    font-size: 12px;
}

.pro .des h5{
    padding-top: 7px;
    color: var(--text-dark);
    font-size: 14px;
}

.pro .des i{
    font-size: 12px;
    color: rgb(243,181,25);
}

.pro .des h4{
    padding-top: 7px;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

/* cart button */
#product1 .pro .cart,
#new-arrivals .pro .cart,
#recently-viewed .pro .cart{
    width: 42px;
    height: 42px;
    line-height: 42px;
    border-radius: 50%;
    background-color: #e8f6ea;
    font-weight: 500;
    color: var(--primary-color);
    border: 1px solid var(--border-light);
    position: absolute;
    bottom: 20px;
    right: 12px;
    transition: var(--transition-fast);
}

#product1 .pro .cart:hover,
#new-arrivals .pro .cart:hover,
#recently-viewed .pro .cart:hover{
    background: var(--primary-color);
    color: var(--white);
}

/* product action buttons */
.product-actions{
    display: flex;
    gap: 8px;
    margin-top: 15px;
    width: 100%;
    align-items: center;
}
.product-actions .primary-action{
    flex: 1;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    background: var(--primary-color);
    color: white;
    transition: 0.3s ease;
    font-size: 0.85rem;
}
.product-actions .icon-action{
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(8,129,120,0.25);
    border-radius: 8px;
    cursor: pointer;
    background: var(--white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
    padding: 0;
}
.product-actions .icon-action:hover{
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* product badge */
.product-badge{
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

/* recently viewed */
#recently-viewed{
    text-align: center;
}

/* product hover overlay */
.product-overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pro:hover .product-overlay{
    opacity: 1;
    visibility: visible;
}

/* responsive layout */
@media(max-width:477px){

    .products-grid{
        justify-content: center;
    }

    .products-grid .pro{
        width: 100%;
        max-width: 320px;
    }

.product-actions{
        flex-wrap: wrap;
    }
    .product-actions .primary-action{
        flex: 1 1 calc(50% - 4px);
    }
}
.product-actions .primary-action:hover{
    opacity: 0.9;
    transform: translateY(-2px);
}

/* products grid */
.products-grid{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    align-items: stretch;
}

.products-grid .pro{
    flex: 0 0 280px;
}
body.dark-theme .pro {
    background-color: #1e1e1e;
    border: 1px solid #333 ;
}

body.dark-theme .pro img {
    background-color: #2a2a2a;
}

body.dark-theme .pro .des h5,
body.dark-theme .pro .des h4,
body.dark-theme .pro .des span,
body.dark-theme .pro .des p {
    color: #e0e0e0 ;
}
/* Missing dark mode fixes */
body.dark-theme .product-image-wrapper {
    background: #2a2a2a;
}

body.dark-theme #product1 .pro .cart,
body.dark-theme #new-arrivals .pro .cart,
body.dark-theme #recently-viewed .pro .cart {
    background-color: #2a2a2a;
    border-color: #444;
    color: #088178;
}

body.dark-theme #product1 .pro .cart:hover,
body.dark-theme #new-arrivals .pro .cart:hover,
body.dark-theme #recently-viewed .pro .cart:hover {
    background: #088178;
    color: #ffffff;
}

body.dark-theme .pro .des span {
    color: #aaaaaa;
}

body.dark-theme .pro .des i {
    color: rgb(243, 181, 25);
}
/* Syling for men's and women's section  */
.quantity-controller {
    display:flex !important;
    align-items: center;
    justify-content: center;
    background-color: #088178;
    border-radius: 4px;
    padding: 10px 15px;
    min-width: 120px;
    transition: all 0.3s ease;
}

.qty-text{
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14ox;
    margin: 0 15px;
    user-select: none;
}

.qty-btn{
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.quantity-controller .hidden {
    display: none !important;
}
/* Buy1Get1Badge */
#product-container .pro{
    position: relative !important;
}
.bogo-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #d9534f;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 8px;
    z-index: 10;
    border-radius: 4px 0 8px 0;
    letter-spacing: 0.5px;
    line-height: 1.3;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.15);
    text-align: center;
}
/* ==========================================================================
   #HOW-IT-WORKS SECTION - COMPLETE POLISHED CSS WITH TRANSITIONS
   ========================================================================== */

#how-it-works {
    text-align: center;
    padding: 40px 20px;
    background-color: #ffffff; 
    width: 100%;
    box-sizing: border-box;
}

#how-it-works h5 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}


.step-box {
    display: flex;
    flex-direction: row; 
    align-items: center; 
    justify-content: flex-start; 
    background: #ffffff;
    border: 1px solid #e2e8f0; /* Soft solid border matching your preview */
    padding: 20px 15px;
    border-radius: 12px; /* Smooth rounded premium corners */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); /* Light subtle elevation */
    box-sizing: border-box;
    cursor: pointer;
    
    /* Engine for all animations (Glow, lift-up, borders) */
    transition: all 0.3s ease-in-out; 
}

/* --- BASE ICON CIRCLE SETUP (With hover-out transition handler) --- */
.icon-wrapper {
    font-size: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Keeps it perfectly circular */
    margin-right: 15px; 
    flex-shrink: 0; 
    
    transition: transform 0.2s ease-in-out; 
}

/* --- DYNAMIC STATIC COLORS (As per your UI specifications) --- */

/* Step 1: Soft Brown/Orange Tint */
.steps-container .step-box:nth-child(1) .icon-wrapper {
    background-color: #fdf2e9; 
    color: #b76e43; 
}

/* Step 2: Soft Blue Tint */
.steps-container .step-box:nth-child(2) .icon-wrapper {
    background-color: #e0f2fe; 
    color: #0284c7; 
}

/* Step 3: Soft Green Tint */
.steps-container .step-box:nth-child(3) .icon-wrapper {
    background-color: #dcfce7; 
    color: #16a34a; 
}

/* --- TYPOGRAPHY DETAILS --- */
.step-details {
    text-align: left;
}

.step-details h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 4px 0;
}

.step-details p {
    font-size: 11.5px;
    color: #718096;
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================================
   HOVER INTERACTIONS ENGINE (Floating & Distinct Glow effects)
   ========================================================================== */

/* Cards float slightly up on hover */
.step-box:hover {
    transform: translateY(-5px); 
    border-color: #cbd5e1; 
}

/* Step 1 Hover: Soft Brown/Orange Shadow Glow */
.steps-container .step-box:nth-child(1):hover {
    box-shadow: 0 10px 20px rgba(183, 110, 67, 0.15); 
}

/* Step 2 Hover: Soft Blue Shadow Glow */
.steps-container .step-box:nth-child(2):hover {
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.18); 
}

/* Step 3 Hover: Soft Green Shadow Glow */
.steps-container .step-box:nth-child(3):hover {
    box-shadow: 0 10px 20px rgba(22, 163, 74, 0.15); 
}

/* Inner Icon Micro-interaction scales up subtly on card hover */
.step-box:hover .icon-wrapper {
    transform: scale(1.08);
}

/* --- RESPONSIVE FALLBACK (For Small Tablets and Mobile Views) --- */
@media (max-width: 900px) {
    .steps-container {
        grid-template-columns: 1fr; /* Rows wrap cleanly into single column stack */
        gap: 15px;
    }
}
