/* Namaya Jewels - Single Product Page */

.namaya-single-product {
    font-family: var(--namaya-font-body);
    color: #1a1a1a;
    background-color: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.namaya-single-product .product-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: sticky;
    top: 20px;
}

.main-image-container {
    width: 100%;
    height: 500px;
    background-color: #f8f6f2;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

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

.thumb-btn {
    height: 100px;
    background-color: #f8f6f2;
    border-radius: 8px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.thumb-btn.active, .thumb-btn:hover {
    border-color: var(--namaya-gold);
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.namaya-single-product .product-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.brand-tag {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--namaya-gold);
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.namaya-single-product .product-title {
    font-family: var(--namaya-font-heading);
    font-size: 36px;
    font-weight: 500;
    color: #111111;
    line-height: 1.2;
}

.price-wrap {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.current-price {
    font-family: var(--namaya-font-heading);
    font-size: 34px;
    font-weight: 600;
    color: #111111;
}

.original-price {
    font-size: 16px;
    color: #777777;
    text-decoration: line-through;
}

.product-description {
    font-size: 14px;
    color: #222222;
    line-height: 1.6;
}

.variant-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.variant-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #111111;
}

.selected-value {
    text-transform: none;
    font-weight: 500;
    color: #555;
}

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

.swatch-btn {
    padding: 10px 18px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background-color: #fdfdfd;
    color: #222222;
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.swatch-btn:hover {
    border-color: #111111;
    background-color: #f0f0f0;
}

.swatch-btn.active {
    border-color: #111111;
    background-color: #111111;
    color: #ffffff;
}

.cta-row {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #111111;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    height: 50px;
}

.quantity-selector .qty-btn {
    width: 42px;
    height: 100%;
    background: #f0f0f0;
    border: none;
    font-size: 20px;
    font-weight: 600;
    color: #111111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.quantity-selector .qty-btn:hover {
    background: #e0e0e0;
}

.quantity-selector .qty-input {
    width: 48px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 15px;
    font-family: inherit;
    color: #111111;
    background: #ffffff;
    font-weight: 600;
    outline: none;
}

.cta-row .add-to-cart-btn {
    flex: 1;
    height: 50px;
    padding: 0 24px;
    background-color: #111111;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.cta-row .add-to-cart-btn:hover {
    background-color: var(--namaya-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(204, 164, 87, 0.3);
}

.add-to-cart-msg {
    font-size: 13px;
    margin-top: -10px;
}

.add-to-cart-msg.success { color: #4caf50; }
.add-to-cart-msg.error { color: #e53935; }

/* Accordions */
.accordions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.accordion-item {
    background-color: var(--namaya-bg);
    border: 1px solid var(--namaya-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-item:hover, .accordion-item.active {
    border-color: var(--namaya-gold);
    background-color: #ffffff;
}

.accordion-header {
    width: 100%;
    padding: 18px 20px;
    background: transparent;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #111111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-header:hover {
    color: var(--namaya-gold);
}

.accordion-icon {
    font-size: 16px;
    color: var(--namaya-gold);
    transition: transform 0.4s ease;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f0ebd9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-item:hover .accordion-icon, .accordion-item.active .accordion-icon {
    background: var(--namaya-gold);
    color: #ffffff;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-content-inner {
    padding: 15px 20px 20px;
    font-size: 13.5px;
    color: #555555;
    line-height: 1.7;
    border-top: 1px solid #f0ebd9;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th, .spec-table td {
    text-align: left;
    padding: 6px 8px;
}

/* Related products */
.namaya-related {
    margin-top: 60px;
    border-top: 1px solid var(--namaya-border);
    padding-top: 30px;
}

.namaya-related h2 {
    font-family: var(--namaya-font-heading);
    font-size: 26px;
    margin-bottom: 20px;
}

.namaya-related .namaya-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 850px) {
    .namaya-single-product .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .product-gallery {
        position: static;
    }
    .main-image-container {
        height: 380px;
    }
    .namaya-related .namaya-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
