/* ========================================================
   TRENDY SHOP - E-COMMERCE STYLESHEET
   Matching design, layout and aesthetic of myatraa.btsage.com
   ======================================================== */

:root {
    --primary: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #fce4ec;
    --text-dark: #222222;
    --text-muted: #666666;
    --border-color: #e5e7eb;
    --bg-light: #f5f6f8;
    --success-green: #27ae60;
    --discount-red: #e74c3c;
    --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================================= */
/* HEADER & TOP NAVIGATION                   */
/* ========================================= */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 990;
}

.left-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger {
    font-size: 26px;
    cursor: pointer;
    user-select: none;
    line-height: 1;
    color: #333;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
}

.hamburger:hover {
    background: #f0f0f0;
}

.logo a {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo a span {
    color: #222;
}

.search-wrapper {
    flex: 1;
    max-width: 580px;
    margin: 0 24px;
}

.search-form {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 10px 42px 10px 16px;
    border-radius: 25px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 15px;
    background: #fafafa;
    transition: all 0.2s ease;
}

.search-input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.15);
}

.search-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #777;
    transition: color 0.2s;
}

.search-btn:hover {
    color: var(--primary);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    position: relative;
    background: #fff;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cart-btn:hover {
    background: var(--primary);
    color: #fff;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cart-btn:hover .cart-count {
    background: #222;
}

/* ========================================= */
/* SIDEBAR / DRAWER MENU                     */
/* ========================================= */
.sidebar {
    position: fixed;
    top: 0;
    left: -290px;
    width: 280px;
    height: 100%;
    background: #ffffff;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
}

.close-btn {
    font-size: 22px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    line-height: 1;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--primary);
}

.menu-links {
    padding: 10px 0;
}

.menu-links a.nav-link {
    display: block;
    padding: 13px 20px;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px solid #f9f9f9;
    transition: all 0.2s;
}

.menu-links a.nav-link:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 24px;
}

.category-dropdown {
    border-bottom: 1px solid #eee;
}

.category-dropdown summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    user-select: none;
    transition: background 0.2s;
}

.category-dropdown summary::-webkit-details-marker {
    display: none;
}

.category-dropdown summary::after {
    content: '▼';
    font-size: 11px;
    color: #888;
    transition: transform 0.2s ease;
}

.category-dropdown[open] summary::after {
    content: '▲';
    color: var(--primary);
}

.category-dropdown summary:hover {
    background: #fdf2f6;
}

.main-cat-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    width: 70%;
}

.main-cat-link:hover {
    color: var(--primary);
}

.sub-links {
    display: flex;
    flex-direction: column;
    background-color: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.sub-links a {
    padding: 11px 20px 11px 36px;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #f3f3f3;
    transition: all 0.15s ease;
}

.sub-links a:hover {
    color: var(--primary);
    background-color: #fce4ec;
    padding-left: 42px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    z-index: 995;
    backdrop-filter: blur(2px);
}

.overlay.active {
    display: block;
}

/* ========================================= */
/* PRODUCT GRID & CARDS                      */
/* ========================================= */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 16px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

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

.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.card-image-wrap {
    width: 100%;
    height: 270px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.card:hover img {
    transform: scale(1.04);
}

.card .title {
    font-size: 14.5px;
    font-weight: 600;
    margin: 12px 0 6px;
    color: #2c3e50;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.card .title:hover {
    color: var(--primary);
}

.homepage-price-block {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 4px;
}

.current-price {
    font-weight: 800;
    color: var(--discount-red);
    font-size: 1.15em;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
}

.sale-badge {
    background: var(--discount-red);
    color: #fff;
    font-size: 0.75em;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.discount {
    color: var(--success-green);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn {
    display: block;
    padding: 10px 14px;
    text-align: center;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary);
    color: #fff;
}

/* ========================================= */
/* PAGINATION                                */
/* ========================================= */
.pagination-wrapper {
    text-align: center;
    padding: 30px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.page-btn {
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.page-btn:hover:not(.active) {
    background: #f5f5f5;
    border-color: var(--primary);
    color: var(--primary);
}

/* ========================================= */
/* PRODUCT DETAIL PAGE                       */
/* ========================================= */
.product-wrapper {
    max-width: 1180px;
    margin: 24px auto;
    padding: 0 16px;
}

.product-page {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
    background: #fff;
    padding: 28px;
    border-radius: 14px;
    box-shadow: var(--card-shadow);
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.main-image-container {
    width: 100%;
    height: 480px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f8f8;
    border: 1px solid #eee;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    border: 2px solid #ddd;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--primary);
}

.product-info-block {
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.3;
}

.price-discount-block {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.price-discount-block .current-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--discount-red);
}

.price-discount-block .original-price {
    font-size: 18px;
    color: #888;
}

.discount-badge {
    color: var(--success-green);
    font-weight: 700;
    font-size: 16px;
}

.product-extra-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.free-delivery-text {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 12.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.rating-pill {
    background: #388e3c;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 3px 8px;
    border-radius: 4px;
}

.reviews-count {
    color: #777;
    font-size: 13px;
}

.seller-box {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 22px;
}

.seller-title {
    font-size: 13px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.seller-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.seller-name {
    font-weight: 700;
    font-size: 15px;
    color: #222;
}

.seller-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
}

.seller-pill {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.size-section-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.size-btn {
    padding: 10px 18px;
    border: 1.5px solid #ccc;
    background: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.size-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.size-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.cta-row {
    display: flex;
    gap: 14px;
    margin-bottom: 26px;
}

.buy-now-btn,
.add-cart-btn {
    flex: 1;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.buy-now-btn {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
}

.buy-now-btn:hover {
    background: var(--primary-dark);
}

.add-cart-btn {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.add-cart-btn:hover {
    background: var(--primary-light);
}

.product-details-block {
    padding-top: 18px;
    border-top: 1px solid #eee;
    margin-bottom: 20px;
}

.product-details-block h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.detail-value {
    color: #444;
    font-size: 14.5px;
    line-height: 1.6;
}

.section-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* Reviews distribution */
.ratings-reviews-block h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
}

.rating-overview-flex {
    display: flex;
    gap: 30px;
    align-items: center;
}

.big-rating {
    text-align: center;
    min-width: 100px;
}

.big-rating span {
    font-size: 40px;
    font-weight: 800;
    color: #222;
}

.big-rating .stars-icon {
    color: #f39c12;
    font-size: 20px;
}

.big-rating .total-ratings {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

.rating-distribution {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dist-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.dist-row .label {
    width: 70px;
    color: #666;
}

.bar-container {
    flex: 1;
    height: 7px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
}

.bar-fill.excellent { background: #27ae60; }
.bar-fill.very-good { background: #2ecc71; }
.bar-fill.good { background: #f1c40f; }
.bar-fill.poor { background: #e67e22; }
.bar-fill.very-poor { background: #e74c3c; }

.dist-row .count {
    width: 45px;
    text-align: right;
    color: #888;
    font-size: 12px;
}

/* ========================================= */
/* PEOPLE ALSO VIEWED                        */
/* ========================================= */
.also-viewed-block {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.also-viewed-block h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
}

.viewed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.viewed-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 10px;
    transition: transform 0.2s;
}

.viewed-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
}

.viewed-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.viewed-card h4 {
    font-size: 13px;
    color: #333;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================= */
/* CART & CHECKOUT PAGES                     */
/* ========================================= */
.cart-page-wrapper {
    max-width: 980px;
    margin: 24px auto;
    padding: 0 16px;
}

.step-nav {
    display: flex;
    justify-content: center;
    background: #fff;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    box-shadow: var(--card-shadow);
    gap: 30px;
}

.step-nav div {
    font-weight: 700;
    font-size: 15px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.step-nav div.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 4px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 24px;
}

.cart-items-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 84px;
    height: 96px;
    border-radius: 8px;
    object-fit: cover;
    background: #f0f0f0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    font-size: 15px;
    color: #222;
    margin-bottom: 4px;
}

.cart-item-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 8px;
}

.cart-item-meta span {
    font-weight: 700;
    color: #333;
}

.cart-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.qty-display {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    margin-left: 12px;
    text-decoration: underline;
}

.remove-btn:hover {
    color: var(--discount-red);
}

.order-summary-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    height: fit-content;
}

.summary-title {
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
}

.summary-row.total-row {
    border-top: 1px solid #eee;
    padding-top: 14px;
    margin-top: 14px;
    font-size: 18px;
    font-weight: 800;
    color: #222;
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    margin-top: 16px;
    transition: background 0.2s;
}

.checkout-btn:hover {
    background: var(--primary-dark);
}

.empty-cart {
    background: #fff;
    padding: 50px 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.empty-cart h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-cart p {
    color: #777;
    margin-bottom: 20px;
    font-size: 14.5px;
}

.shop-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    transition: background 0.2s;
}

.shop-btn:hover {
    background: var(--primary-dark);
}

/* ========================================= */
/* FORMS (CHECKOUT & TRACKING)               */
/* ========================================= */
.form-card {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14.5px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.12);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 18px 0;
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.payment-label:hover {
    border-color: var(--primary);
    background: #fdf2f6;
}

.payment-label input[type="radio"]:checked + span {
    color: var(--primary);
}

/* ========================================= */
/* ORDER TRACKING & TIMELINE                 */
/* ========================================= */
.track-container {
    max-width: 680px;
    margin: 30px auto;
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.track-container h2 {
    font-size: 22px;
    margin-bottom: 6px;
}

.track-container p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    padding-bottom: 24px;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.timeline-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 36px;
    width: 2px;
    height: calc(100% - 36px);
    background: #e0e0e0;
}

.timeline-step.completed:not(:last-child)::before {
    background: var(--success-green);
}

.timeline-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 2;
}

.timeline-step.completed .timeline-icon {
    background: var(--success-green);
}

.timeline-step.active .timeline-icon {
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.timeline-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.timeline-content p {
    font-size: 13px;
    color: #777;
    margin: 2px 0 0;
}

/* ========================================= */
/* SEO BOX & BANNER                          */
/* ========================================= */
.seo-container {
    max-width: 1240px;
    margin: 40px auto 20px;
    padding: 0 16px;
}

.seo-box {
    background: #ffffff;
    padding: 34px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid #eee;
}

.seo-box h1 {
    text-align: center;
    color: #222;
    margin-bottom: 18px;
    font-size: 24px;
    font-weight: 800;
}

.seo-box p {
    font-size: 14.5px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 14px;
}

/* ========================================= */
/* FOOTER                                    */
/* ========================================= */
.footer {
    background: #1e2229;
    color: #bdc3c7;
    margin-top: 50px;
    padding-top: 40px;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-col h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 14px;
    font-weight: 700;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 14px;
    font-weight: 600;
}

.footer-col p {
    font-size: 13.5px;
    line-height: 1.6;
    color: #9aa0a6;
}

.footer-col a {
    display: block;
    color: #bdc3c7;
    font-size: 13.5px;
    margin-bottom: 9px;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: #888;
}

/* ========================================= */
/* TOAST NOTIFICATION                        */
/* ========================================= */
.toast-notice {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #222;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1050;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ========================================= */
/* RESPONSIVE MEDIA QUERIES                  */
/* ========================================= */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .product-page {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 16px;
    }
    .search-wrapper {
        display: none;
    }
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .card-image-wrap {
        height: 220px;
    }
    .card {
        padding: 10px;
    }
    .card .title {
        font-size: 13px;
        min-height: 36px;
    }
    .current-price {
        font-size: 1em;
    }
    .cart-layout {
        grid-template-columns: 1fr;
    }
    .viewed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .card-image-wrap {
        height: 190px;
    }
    .main-image-container {
        height: 350px;
    }
    .cta-row {
        flex-direction: column;
    }
}
