/* ============================================================
   SACHK — Frontend Page Styles
   ============================================================ */

/* ---- Hero Slider ---- */
.hero-carousel .carousel-item {
    min-height: 480px;
}
.hero-carousel .carousel-indicators [data-bs-target] {
    background-color: var(--berry);
    width: 10px; height: 10px;
    border-radius: 50%;
}
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    filter: none;
    background-color: var(--berry);
    border-radius: 50%;
    width: 38px; height: 38px;
    background-size: 50%;
}

/* ---- Product Detail ---- */
.product-thumb-gallery .thumb {
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1/1;
    background: var(--foam);
}
.product-thumb-gallery .thumb.active,
.product-thumb-gallery .thumb:hover {
    border-color: var(--berry);
}
.product-thumb-gallery .thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.product-main-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--foam);
    aspect-ratio: 1/1;
}
.product-main-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}
.product-price-section .original-price {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 1rem;
}
.product-price-section .final-price {
    color: var(--berry);
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-head);
}
.product-price-section .discount-badge {
    background: var(--strawberry);
    color: #fff;
    border-radius: 20px;
    padding: 2px 12px;
    font-size: .8rem;
    font-weight: 700;
}
.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    width: fit-content;
}
.qty-control button {
    background: var(--foam);
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    color: var(--berry);
    font-size: 1.1rem;
    transition: background .15s;
}
.qty-control button:hover { background: var(--foam-dk); }
.qty-control input {
    border: none;
    text-align: center;
    width: 50px;
    font-weight: 700;
    color: var(--text-dark);
}
.qty-control input:focus { outline: none; }

/* ---- Cart Page ---- */
.cart-table thead th {
    background: var(--foam);
    color: var(--berry);
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    border: none;
}
.cart-table td { vertical-align: middle; border-color: var(--border); }
.cart-item-img {
    width: 75px; height: 75px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--foam);
}
.cart-summary {
    background: var(--offwhite);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: .95rem;
}
.cart-summary .summary-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--berry);
}

/* ---- Checkout ---- */
.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
}
.checkout-step {
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
    flex: 1;
    max-width: 160px;
}
.step-circle {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    position: relative;
    z-index: 1;
}
.checkout-step.active .step-circle {
    background: var(--berry);
    color: #fff;
}
.checkout-step.done .step-circle {
    background: var(--strawberry);
    color: #fff;
}
.step-label {
    font-size: .75rem;
    color: var(--text-light);
    margin-top: 6px;
    text-align: center;
}
.checkout-step.active .step-label { color: var(--berry); font-weight: 700; }

/* ---- Payment Networks ---- */
.network-card {
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    text-align: center;
    transition: all .2s;
}
.network-card:hover,
.network-card.selected {
    border-color: var(--berry);
    background: var(--foam);
}
.network-card .network-icon {
    font-size: 2rem;
    margin-bottom: 6px;
}
.network-card .network-name {
    font-weight: 700;
    font-size: .9rem;
    color: var(--text-dark);
}
.merchant-number-box {
    background: var(--foam);
    border: 1px dashed var(--strawberry);
    border-radius: var(--radius);
    padding: 14px 20px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--berry);
    letter-spacing: 2px;
    text-align: center;
    cursor: copy;
}

/* ---- Order Tracking ---- */
.tracking-timeline {
    position: relative;
    padding: 0 0 0 30px;
}
.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 9px; top: 0; bottom: 0;
    width: 2px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    margin-bottom: 24px;
}
.timeline-dot {
    position: absolute;
    left: -30px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--white);
    top: 2px;
}
.timeline-item.completed .timeline-dot { background: var(--berry); }
.timeline-item.current .timeline-dot { background: var(--strawberry); box-shadow: 0 0 0 4px var(--foam); }
.timeline-title { font-weight: 700; font-size: .9rem; color: var(--text-mid); }
.timeline-item.completed .timeline-title,
.timeline-item.current .timeline-title { color: var(--berry); }

/* ---- Search Results ---- */
.search-bar-page {
    background: var(--foam);
    padding: 30px 0;
}
.search-count { color: var(--text-light); font-size: .9rem; }

/* ---- Zoom Modal ---- */
.img-zoom-modal .modal-dialog { max-width: 700px; }
.img-zoom-modal img { width: 100%; border-radius: var(--radius-lg); }

/* ---- Policy Pages ---- */
.policy-content h3 { color: var(--berry); margin-top: 2rem; }
.policy-content p { color: var(--text-mid); }

/* ---- Contact Form ---- */
.contact-info-card {
    background: var(--foam);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}
.contact-icon {
    width: 44px; height: 44px;
    background: var(--berry);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
