@charset "utf-8";

/* =====================================================
   BREADCRUMBS
===================================================== */
.breadcrumbs {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 20px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.breadcrumbs a {
    color: var(--muted);
    transition: var(--trans);
}

.breadcrumbs a:hover {
    color: var(--blue);
}

.breadcrumbs span.current {
    color: var(--dark-deeper);
}

/* =====================================================
   TOP SECTION: GALLERY & BUY BOX
===================================================== */
.section-product-top {
    padding: 10px 0 60px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Image Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    background: #fff;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.thumbnail-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px; /* For scrollbar if needed */
}

.thumbnail-list::-webkit-scrollbar { height: 4px; }
.thumbnail-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 4px; }

.thumb-wrap {
    width: 100px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: var(--trans);
    flex-shrink: 0;
}

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

.thumb-wrap:hover {
    opacity: 1;
}

.thumb-wrap.active {
    opacity: 1;
    border-color: var(--blue);
}

/* Right Side: Buy Box */
.product-buy-box {
    display: flex;
    flex-direction: column;
}

.shop-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    padding: 6px 16px 6px 6px;
    border-radius: 100px;
    width: max-content;
    margin-bottom: 24px;
    transition: var(--trans);
}

.shop-pill:hover {
    border-color: rgba(0,111,255,0.3);
    box-shadow: 0 4px 12px rgba(0,111,255,0.08);
}

.shop-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.shop-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-deeper);
}

.product-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    color: var(--dark-deeper);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.price-stock-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.product-price {
    font-size: 32px;
    font-weight: 900;
    color: var(--blue);
    letter-spacing: -1px;
}

.stock-badge {
    font-size: 12px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-badge.in-stock {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.stock-badge.made-to-order {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.stock-badge.out-of-stock {
    background: rgba(192, 57, 43, 0.1);
    color: #c0392b;
}

.stock-badge.unavailable {
    background: rgba(0,0,0,0.05);
    color: var(--muted);
}

.product-short-desc {
    font-size: 16px;
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Options / Variants */
.product-options {
    margin-bottom: 30px;
}

.option-group {
    margin-bottom: 20px;
}

.option-label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--dark-deeper);
    margin-bottom: 12px;
}

.pill-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.opt-pill {
    cursor: pointer;
    user-select: none;
}

.opt-pill input {
    display: none;
}

.opt-pill span {
    display: inline-block;
    background: #fff;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    transition: var(--trans);
}

.opt-pill:hover span {
    border-color: rgba(0,111,255,0.4);
}

.opt-pill input:checked + span {
    background: rgba(0,111,255,0.05);
    border-color: var(--blue);
    color: var(--blue-dark);
    font-weight: 800;
}

/* Add to Cart Row */
.cart-action-row {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.qty-selector {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 100px;
    padding: 4px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    font-size: 20px;
    font-weight: 500;
    color: var(--dark);
}

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

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 800;
    color: var(--dark-deeper);
    outline: none;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-full {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 18px;
    padding: 16px 24px;
}

/* Logistics Info Mini-Cards */
.logistics-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.log-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 16px 20px;
}

.log-icon {
    font-size: 24px;
    line-height: 1;
}

.log-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log-text strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--dark-deeper);
}

.log-text span {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

/* =====================================================
   BOTTOM SECTION: DETAILS, SPECS, REVIEWS
===================================================== */
.section-product-bottom {
    padding: 60px 0 100px;
}

.extended-details-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Main Content (Left) */
.content-main {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 50px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
}

.detail-heading {
    font-size: 24px;
    font-weight: 900;
    color: var(--dark-deeper);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.rich-text p {
    font-size: 16px;
    color: var(--dark);
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-divider {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin: 50px 0;
}

/* Reviews Empty State */
.reviews-empty {
    text-align: center;
    padding: 40px 20px;
    background: var(--off-white);
    border-radius: 12px;
    border: 1px dashed rgba(0,0,0,0.15);
}

.empty-stars {
    font-size: 24px;
    color: #e5e7eb; /* Light gray stars */
    margin-bottom: 12px;
    letter-spacing: 4px;
}

.empty-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark-deeper);
    margin-bottom: 8px;
}

.empty-desc {
    font-size: 15px;
    color: var(--muted);
    max-width: 400px;
    margin: 0 auto;
}

/* Sidebar Info (Right) */
.sidebar-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.05);
}

.sidebar-heading {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark-deeper);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--off-white);
}

/* Specs List */
.spec-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.spec-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.spec-label {
    font-weight: 700;
    color: var(--muted);
}

.spec-val {
    font-weight: 700;
    color: var(--dark-deeper);
    text-align: right;
}

/* Included List */
.included-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.included-list li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    color: var(--dark);
    line-height: 1.5;
}

.included-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--blue);
    font-weight: 900;
}


/* =====================================================
   FULL WIDTH SHOP ABOUT SECTION
===================================================== */
.shop-about-full {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 50px;
    border: 1px solid var(--blue);
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
    margin-top: 60px; /* Creates separation from the grid above */
}

.shop-about-full .detail-heading {
    margin-bottom: 20px;
}

.shop-about-full .shop-desc-text {
    font-size: 16px;
    color: var(--dark);
    line-height: 1.8;
    max-width: 900px; /* Keeps the text highly readable without stretching too far */
}



/* =====================================================
   SHARE BAR
===================================================== */
.section-share-bar {
    padding: 40px 0;
    background: var(--blue);
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.share-container {
    display: flex;
    flex-direction: column; /* Stacks heading on top of buttons */
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.share-heading {
    font-size: 14px;
    font-weight: 700;
    color: #fff; /* Light/dark grey tone */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    border: none;
    transition: var(--trans);
    cursor: pointer;
    text-decoration: none;
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor; 
    transition: var(--trans);
}

/* Modern Blue Hover Effect */
.share-btn:hover {
    background: #2c86fb;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 -1px 5px -1px #fff;
}



/* =====================================================
   RESPONSIVE DESIGN
===================================================== */
@media screen and (max-width: 1024px) {
    .product-layout, .extended-details-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .main-image-wrap {
        aspect-ratio: auto;
        height: 500px; /* Limit height on tablets */
    }
}

@media screen and (max-width: 700px) {
    .main-image-wrap {
        height: 350px;
    }
    
    .product-title {
        font-size: 28px;
    }
    
    .cart-action-row {
        flex-direction: column;
    }
    
    .qty-selector {
        justify-content: center;
        width: 100%;
        max-width: none;
    }
    
    .content-main {
        padding: 30px 20px;
    }
	
	.price-stock-row {
    display: block;
	}
	
	.shop-about-full {
        padding: 30px 20px;
        margin-top: 40px;
    }
	
	.share-btn {
        width: 42px;
        height: 42px;
    }
    .share-btn svg {
        width: 18px;
        height: 18px;
    }
	
}

@media only screen and (max-width: 500px){
	.thumb-wrap {
		width: 60px;
        height: 60px;
	}

}