/* Shopify-inspired Product Page Styles */
:root {
    --shopify-bg: #ffffff;
    --shopify-text: #121212;
    --shopify-secondary: #6e6e6e;
    --shopify-border: #e8e8e8;
    --shopify-accent: #000000;
    --shopify-sale: #d90429;
}

.product-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
}

/* Gallery Styles */
.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image-container {
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: zoom-in;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.main-image-container:hover img {
    transform: scale(1.05);
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f8f8f8;
}

.thumbnail-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-container::-webkit-scrollbar-track {
    background: #f8f8f8;
    border-radius: 3px;
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.thumbnail-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.thumbnail-img {
    transition: all 0.3s ease;
}

.thumbnail-img:hover {
    opacity: 1 !important;
    transform: translateY(-2px);
}

.thumbnail-img.active-thumbnail {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.thumbnail-strip {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumb-item {
    width: 80px;
    height: 100px;
    border: 1px solid var(--shopify-border);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.thumb-item.active,
.thumb-item:hover {
    opacity: 1;
    border-color: var(--shopify-accent);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info Styles */
.product-details {
    display: flex;
    flex-direction: column;
}

.product-vendor {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--shopify-secondary);
    margin-bottom: 10px;
}

.product-title {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--shopify-text);
    text-transform: capitalize;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    margin-bottom: 30px;
}

.current-price {
    font-weight: 600;
    color: var(--shopify-accent);
}

.compare-price {
    color: var(--shopify-secondary);
    text-decoration: line-through;
    font-size: 18px;
    font-weight: 400;
}

.sale-badge-pill {
    background: var(--shopify-sale);
    color: white;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Quantity and Buttons */
.product-form {
    border-top: 1px solid var(--shopify-border);
    padding-top: 30px;
}

.quantity-selector {
    margin-bottom: 25px;
}

.quantity-label {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    width: 120px;
    border: 1px solid var(--shopify-border);
    border-radius: 4px;
}

.qty-btn {
    padding: 10px;
    flex: 1;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: none;
    font-weight: 600;
}

.add-to-cart-btn {
    width: 100%;
    padding: 18px;
    background: transparent;
    border: 1px solid var(--shopify-accent);
    color: var(--shopify-accent);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    border-radius: 4px;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.buy-now-btn {
    width: 100%;
    padding: 18px;
    background: var(--shopify-accent);
    color: white;
    border: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 4px;
    transition: opacity 0.3s;
}

.buy-now-btn:hover {
    opacity: 0.9;
}

.whatsapp-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    /* Pill shaped for premium feel */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    margin-top: 10px;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: white;
}

.whatsapp-btn:active {
    transform: translateY(-1px);
}

.whatsapp-btn i {
    font-size: 22px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Accordion Info */
.info-accordion {
    margin-top: 40px;
    border-top: 1px solid var(--shopify-border);
}

.accordion-item {
    border-bottom: 1px solid var(--shopify-border);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-weight: 500;
}

.accordion-content {
    padding-bottom: 20px;
    color: var(--shopify-secondary);
    font-size: 14px;
    line-height: 1.6;
    display: none;
}

.accordion-item.active .accordion-content {
    display: block;
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 40px;
    padding: 20px;
    background: #fdfdfd;
    border: 1px solid var(--shopify-border);
    border-radius: 4px;
}

.badge-item {
    text-align: center;
    font-size: 11px;
    color: var(--shopify-secondary);
}

.badge-item i {
    font-size: 20px;
    display: block;
    margin-bottom: 8px;
    color: var(--shopify-accent);
}

/* Responsive */
@media (max-width: 992px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-gallery {
        position: relative;
        top: 0;
    }

    .product-title {
        font-size: 28px;
    }
}

/* Low Stock Warnings */
.low-stock-badge-floating {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #d90429;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(217, 4, 41, 0.3);
    animation: pulse 2s infinite;
}

.low-stock-warning-inline {
    background: #fff5f5;
    color: #d90429;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #fed7d7;
    margin-top: 10px;
}

.low-stock-warning-inline i {
    font-size: 16px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}