/* Layout */
.product-detail-section {
    padding: 28px 0 30px;
    background-color: #fff;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: flex-start;
}

/* Images */
.product-images {
    position: sticky;
    top: 100px;
}

.main-image {
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
    margin-bottom: 10px;
    background: #fefaf7;
	overflow: hidden;
}

.main-image img {
	width: 100%;
    height: 520px;
    object-fit: cover;
    transition: transform .4s ease;
    transform-origin: center center;
	opacity: 1;
}

.main-image img.loading {
    opacity: 0;
}

.main-image:hover img {
    transform: scale(1.25);
}

.main-image img, .product-main-anim img {
    will-change: transform, opacity;
}

.thumbnail-images {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.thumbnail {
    border-radius: 3px;
    border: 1px solid #eee;
    overflow: hidden;
    padding: 0;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
}

.thumbnail:hover {
    border-color: #ff6b9d;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.thumbnail.active {
    border-color: #ff6b9d;
}

/* Product Info */
.product-info {
    padding-top: 10px;
}

.product-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a3948d;
    margin-bottom: 4px;
}

.product-header {
	position:relative;
    margin-bottom: 18px;
}

.product-title {
    font-family: "Playfair Display", serif;
    font-size: 2.1rem;
    margin-bottom: 4px;
    color: #3e3534;
}

.product-subtitle {
    font-size: 0.95rem;
    color: #8b807d;
}

/* Price */
.price-section {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0e3dc;
}

.current-price {
    font-size: 1.5rem;
}

.original-price {
    font-size: 1rem;
    text-decoration: line-through;
    color: #b2a39d;
}

.discount {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ffe5ef;
    color: #d2467a;
}

.color-option.disabled,
.size-option.disabled {
    opacity: 0.35;
    pointer-events: none;

    background-image: linear-gradient(
        to bottom right,
        transparent 49%,
        rgba(0,0,0,0.15) 50%,
        transparent 51%
    );
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.sub-opt{
	display: block;
    font-size: 10px;
}

/* Option groups */
.product-option-group {
    margin-bottom: 22px;
}

.option-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a3948d;
    margin-bottom: 10px;
}

/* Color selector */
.color-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-selector input[type="radio"] {
    display: none;
}

.color-option {
    min-width: 70px;
    padding: 8px 10px;
    border-radius: 3px;
    border: 1px solid #e5d7cf;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all .2s ease;
}

.color-option:hover {
    border-color: #ff6b9d;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.color-selector input[type="radio"]:checked + .color-option {
    border-color: #ff6b9d;
    box-shadow: 0 0 0 2px rgba(255,107,157,0.45);
}

.color-name {
    font-size: 0.8rem;
    color: #3e3534;
}

/* Size selector */
.size-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 8px;
}

.size-selector input[type="radio"] {
    display: none;
}

.size-option {
    border-radius: 3px;
    border: 1px solid #e5d7cf;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
	font-size: 0.95rem;
}

.size-option:hover {
    border-color: #ff6b9d;
}

.size-selector input[type="radio"]:checked + .size-option {
    background: #ffe5ef;
    color: #3e3534;
	border-color: #ff6b9d;
    box-shadow: 0 0 0 2px rgba(255,107,157,0.45);
}

/* Quantity */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    border-radius: 3px;
    border: 1px solid #e5d7cf;
    overflow: hidden;
}

.quantity-btn {
    border: none;
    background: #faf4f1;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    color: #645652;
    transition: background .2s ease;
}

.quantity-btn:hover {
    background: #f0e3dc;
}

.quantity-input {
    border: none;
    width: 52px;
    text-align: center;
    font-size: 0.95rem;
    background: #fff;
    color: #3e3534;
}

.add-to-cart-btn span {
	padding: 10px 0px 8px 38px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 19'><path d='M3 7H17L18 18H2L3 7Z' fill='none' stroke='%23fff' stroke-width='2'/><path d='M13 4C13 2.343 11.657 1 10 1C8.343 1 7 2.343 7 4' fill='none' stroke='%23fff' stroke-width='2'/></svg>");
    background-repeat: no-repeat;
    background-position: 10px;
    background-size: 20px;
    color: white;
}

.add-to-cart-btn:hover {
	background-color: #e85a8a;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.add-to-cart-btn:hover span{
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 19'><path d='M2 6h16l1 13H1L2 6zm8-6c2.2 0 4 1.8 4 4h-2c0-1.1-.9-2-2-2s-2 .9-2 2H6c0-2.2 1.8-4 4-4z' fill='%23fff'/></svg>");
}

.add-to-cart-btn {
    width: 100%;
    border: none;
    border-radius: 3px;
    padding: 11px 16px;
    background-color: #ff6b9d;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0.03em;
    transition: background .2s ease, box-shadow .2s ease, transform .1s ease;
}

/* Tabs */
.product-tabs-section {
    background: #fff;
    padding-bottom: 30px;
}

.tabs-navigation {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #f0e3dc;
    margin-bottom: 18px;
    overflow-x: auto;
}

.tab-btn {
    padding: 5px 0;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 500;
    color: #8b807d;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color .2s ease, border-color .2s ease;
}

.tab-btn:hover {
    color: #ff6b9d;
}

.tab-btn.active {
    color: #3e3534;
    border-bottom-color: #ff6b9d;
}

.tabs-content {
    font-size: 0.95rem;
    color: #645652;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #3e3534;
}

.tab-content p {
    margin-bottom: 10px;
}

.tab-content ul {
    padding-left: 18px;
    margin-bottom: 6px;
}

.tab-content li {
    margin-bottom: 4px;
}

/* Related strip */
.related-products-strip {
    padding: 30px 0 40px;
    background: #fefaf7;
}

/* Responsive */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }
    .product-images {
        position: static;
    }
    .main-image img {
        height: 420px;
    }
}

@media (max-width: 600px) {
    .main-image img {
        height: 320px;
    }
    .tabs-navigation {
        gap: 16px;
    }
}




/* ===========================================
    PRODUCT IMAGE SWIPE ANIMATION
   =========================================== */

.product-main-anim {
    position: relative;
    overflow: hidden;
}

.product-main-anim img {
    transition: transform .35s ease, opacity .35s ease;
}