/* ==========================================================================
   PRODUCT DETAIL PAGE — specific styles
   These assume that global tokens (--ikak-red, --ikak-border, etc.),
   header, footer, sidebar, product-grid, and other common components
   are already defined in your main style.css.
========================================================================== */

/* ---------- Breadcrumb ---------- */
.product-breadcrumb {
    background: #fff;
    border-bottom: 1px solid var(--ikak-border, #ECECEC);
    padding: 14px 0;
    font-size: 12.5px;
    color: var(--ikak-text-muted, #6B7280);
}
.product-breadcrumb a { color: var(--ikak-text-muted, #6B7280); }
.product-breadcrumb a:hover { color: var(--ikak-red, #E30613); }
.product-breadcrumb i { font-size: 9px; margin: 0 8px; color: var(--ikak-text-light, #9CA3AF); }
.product-breadcrumb span { color: var(--ikak-text, #1A1A1A); font-weight: 600; }

/* ---------- Main: gallery + info ---------- */
.product-main-section { padding: 36px 0; }
.product-main-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-gallery {
    display: flex;
    gap: 14px;
}
.product-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}
.product-gallery-thumb {
    width: 78px;
    height: 78px;
    border: 2px solid var(--ikak-border, #ECECEC);
    border-radius: var(--radius-sm, 6px);
    background: var(--ikak-gray-bg, #F5F5F5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: border-color .2s ease;
}
.product-gallery-thumb.is-active { border-color: var(--ikak-red, #E30613); }
.product-gallery-thumb-icon { font-size: 22px; color: #c9c9c9; }
.product-gallery-thumb-play {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--ikak-red, #E30613);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.product-gallery-main {
    flex: 1;
    min-height: 480px;
    border: 1px solid var(--ikak-border, #ECECEC);
    border-radius: var(--radius-md, 10px);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity .15s ease;
}
.product-gallery-main-icon { font-size: 96px; color: #d8d8d8; }
.product-gallery-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--ikak-text-muted, #6B7280);
}
.product-gallery-video-placeholder i { font-size: 48px; color: var(--ikak-red, #E30613); }
.product-gallery-video-placeholder span { font-size: 13px; }

/* ---------- Info panel ---------- */
.product-detail-badge {
    display: inline-block;
    background: var(--ikak-red, #E30613);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
}
.product-detail-name { font-size: 32px; font-weight: 800; margin: 0 0 4px; }
.product-detail-rank { font-size: 14px; color: var(--ikak-text-muted, #6B7280); margin: 0 0 12px; }
.product-detail-description { font-size: 14px; color: var(--ikak-text-muted, #6B7280); margin-bottom: 18px; max-width: 520px; }

.product-detail-price {
    font-size: 30px;
    font-weight: 800;
    color: var(--ikak-red, #E30613);
    margin-bottom: 26px;
}
.product-detail-price .currency { font-size: 18px; }

.product-option-block { margin-bottom: 22px; }
.product-option-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--ikak-text, #1A1A1A);
    margin-bottom: 12px;
}

.product-size-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.product-size-btn {
    min-width: 56px;
    padding: 9px 6px;
    border: 1px solid var(--ikak-border, #ECECEC);
    border-radius: var(--radius-sm, 6px);
    background: #fff;
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.product-size-btn small { display: block; font-size: 10px; font-weight: 400; color: var(--ikak-text-muted, #6B7280); }
.product-size-btn:hover { border-color: var(--ikak-red, #E30613); }
.product-size-btn.is-active { background: var(--ikak-red, #E30613); border-color: var(--ikak-red, #E30613); color: #fff; }
.product-size-btn.is-active small { color: rgba(255,255,255,.85); }
.product-size-btn.is-unavailable { opacity: .45; text-decoration: line-through; }

.product-color-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.product-color-swatch {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 2px solid transparent;
    box-shadow: 0 0 0 1px var(--ikak-border, #ECECEC);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease;
}
.product-color-swatch.has-border { box-shadow: 0 0 0 1px #ccc inset, 0 0 0 1px var(--ikak-border, #ECECEC); }
.product-color-swatch:hover { transform: scale(1.08); }
.product-color-swatch.is-unavailable { opacity: .38; position: relative; }
.product-color-swatch.is-active {
    border-color: #fff;
    box-shadow: 0 0 0 2px var(--ikak-red, #E30613);
    transform: scale(1.1);
}

.product-action-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.product-qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--ikak-border, #ECECEC);
    border-radius: var(--radius-sm, 6px);
    overflow: hidden;
}
.product-qty-btn {
    width: 40px; height: 44px;
    background: var(--ikak-gray-bg-2, #FAFAFA);
    border: none;
    font-size: 18px;
    font-weight: 600;
}
.product-qty-btn:hover { background: var(--ikak-red, #E30613); color: #fff; }
.product-qty-input {
    width: 52px; height: 44px;
    border: none;
    border-left: 1px solid var(--ikak-border, #ECECEC);
    border-right: 1px solid var(--ikak-border, #ECECEC);
    text-align: center;
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-weight: 700;
    font-size: 14px;
}

.product-icon-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm, 6px);
    font-size: 18px;
    padding: 0;
    flex: 0 0 44px;
    transition: all .2s ease;
    cursor: pointer;
}
.product-wishlist-cta {
    background: #fff;
    border: 1px solid var(--ikak-border, #ECECEC);
    color: #4b5563;
}
.product-wishlist-cta:hover {
    border-color: var(--ikak-red, #E30613);
    color: var(--ikak-red, #E30613);
    background: var(--ikak-red-light, #FDEBEC);
}
.product-wishlist-cta.is-active {
    background: var(--ikak-red, #E30613);
    border-color: var(--ikak-red, #E30613);
    color: #fff;
}
.product-cart-cta {
    background: #fff;
    border: 1px solid var(--ikak-border, #ECECEC);
    color: #4b5563;
}
.product-cart-cta:hover {
    border-color: var(--ikak-red, #E30613);
    color: var(--ikak-red, #E30613);
    background: var(--ikak-red-light, #FDEBEC);
}
.product-cart-cta.is-added {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

/* Primary Checkout / Buy Now CTA */
.product-buy-cta {
    flex: 1;
    min-width: 170px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ikak-red, #E30613);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .5px;
    text-transform: uppercase;
    border-radius: var(--radius-sm, 6px);
    border: none;
    box-shadow: 0 4px 14px rgba(227, 6, 19, 0.3);
    transition: all .2s ease;
    cursor: pointer;
}
.product-buy-cta:hover {
    background: var(--ikak-red-dark, #B4050F);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(227, 6, 19, 0.4);
}
.product-buy-cta:active {
    transform: scale(0.98);
}

.product-highlights {
    list-style: none;
    margin: 0;
    padding: 18px 20px;
    background: var(--ikak-gray-bg-2, #FAFAFA);
    border-radius: var(--radius-md, 10px);
}
.product-highlights li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ikak-text, #1A1A1A);
    padding: 6px 0;
}
.product-highlights i { color: var(--ikak-red, #E30613); font-size: 11px; }

/* ---------- Feature strip ---------- */
.product-detail-feature-strip {
    background: #fff;
    border-top: 1px solid var(--ikak-border, #ECECEC);
    border-bottom: 1px solid var(--ikak-border, #ECECEC);
    padding: 20px 0;
}
.product-detail-feature-strip-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.product-detail-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.product-detail-feature-item i {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--ikak-gray-bg, #F5F5F5);
    color: var(--ikak-red, #E30613);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.product-detail-feature-item strong { display: block; font-size: 12px; font-weight: 700; }
.product-detail-feature-item small { display: block; font-size: 10.5px; color: var(--ikak-text-muted, #6B7280); }

/* ---------- Tabs ---------- */
.product-tabs-section { padding-top: 34px; }
.product-tabs-nav {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid var(--ikak-border, #ECECEC);
    margin-bottom: 26px;
}
.product-tab-btn {
    background: none;
    border: none;
    padding: 12px 2px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ikak-text-muted, #6B7280);
    text-transform: uppercase;
    letter-spacing: .3px;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.product-tab-btn:hover { color: var(--ikak-red, #E30613); }
.product-tab-btn.is-active { color: var(--ikak-red, #E30613); border-bottom-color: var(--ikak-red, #E30613); }

.product-tab-panel { display: none; }
.product-tab-panel.is-active { display: block; animation: tabFadeIn .2s ease; }
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-tab-description {
    font-size: 13.5px;
    color: var(--ikak-text-muted, #6B7280);
    max-width: 900px;
    margin-bottom: 26px;
}
.product-tab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.product-spec-table,
.product-features-list {
    border: 1px solid var(--ikak-border, #ECECEC);
    border-radius: var(--radius-md, 10px);
    padding: 22px;
}
.product-spec-table h5,
.product-features-list h5 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 16px;
}
.product-spec-table table { width: 100%; border-collapse: collapse; }
.product-spec-table td {
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--ikak-border, #ECECEC);
}
.product-spec-table td:first-child { color: var(--ikak-text-muted, #6B7280); width: 40%; }
.product-spec-table tr:last-child td { border-bottom: none; }
.product-features-list ul { list-style: none; margin: 0; padding: 0; }
.product-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    padding: 6px 0;
}
.product-features-list i { color: #16a34a; margin-top: 3px; font-size: 11px; }

.product-reviews-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.product-reviews-average { font-size: 32px; font-weight: 800; }
.product-reviews-stars {
    color: #ddd;
    font-size: 14px;
}
.product-reviews-stars small {
    display: block;
    color: var(--ikak-text-muted, #6B7280);
    font-size: 11px;
    font-weight: 400;
    margin-top: 2px;
}
.product-write-review-btn {
    margin-left: auto;
    background: var(--ikak-black, #0D0D0D);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: var(--radius-sm, 6px);
}
.product-write-review-btn:hover { background: var(--ikak-red, #E30613); }
.product-no-reviews { font-size: 13px; color: var(--ikak-text-muted, #6B7280); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .product-main-row { grid-template-columns: 1fr; gap: 26px; }
    .product-gallery-main { min-height: 360px; }
    .product-tab-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .product-gallery { flex-direction: column-reverse; }
    .product-gallery-thumbs { flex-direction: row; overflow-x: auto; }
    .product-gallery-thumb { width: 60px; height: 60px; flex-shrink: 0; }
    .product-gallery-main { min-height: 280px; }
    .product-detail-name { font-size: 26px; }
    .product-detail-price { font-size: 24px; }
    .product-action-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
    .product-qty-selector { flex: 1; }
    .product-wishlist-cta,
    .product-cart-cta { width: 44px; height: 44px; flex: 0 0 44px; }
    .product-buy-cta { width: 100%; min-width: 100%; margin-top: 6px; }
    .product-detail-feature-item { flex-basis: 45%; }
}

@media (max-width: 575.98px) {
    .product-detail-feature-item { flex-basis: 100%; }
    .product-tabs-nav { gap: 18px; overflow-x: auto; }
}
