/* Mobile Cart Link Styles start*/
.mobile-cart-link {
    display: none;
}

.mobile-cart-link {
    display: block;
    position: absolute;
    top: 2rem;
    width: 1.7rem;
    height: 1.7rem;
}

.mobile-cart-link {
    right: 4rem;
}

.mobile-cart-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* Mobile Shop Link Styles end*/

/* product line up styles start */
.selection-heading {
    font-weight: bold;
    font-size: 2rem;
    padding-left: 1rem;
}

/* Grid Layout */
.shop-products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Tablet: 2 columns */
@media (min-width: 600px) {
    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Desktop: 3 columns */
@media (min-width: 900px) {
    .shop-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop: 4 columns */
@media (min-width: 1200px) {
    .shop-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.product-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f0f0f0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.25rem;
}

.product-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.product-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
}

/*.product-price {
    font-size: 1.25rem;
    font-weight: 700;
}*/

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    gap: 8px;
}

/* style for add btn start */
.add-to-cart-btn {
    width: 100%;
    padding: 16px;
    background: #000;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.add-to-cart-btn:hover {
    background: gray;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn.added {
    background: #22c55e;
}

/*style for add to cart button end */

/* product line up styles end */

/* dialog box styles start */

.product-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-dialog.active {
    display: flex;
}

/* Overlay/Backdrop */
.dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

/* Dialog Content Container */
.dialog-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 95%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button */
.dialog-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    color: #333;
    line-height: 1;
}

.dialog-close:hover {
    background: #f5f5f5;
    transform: scale(1.1);
}

/* Dialog Body - Two Column Layout */
.dialog-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
}

/* Desktop: Two columns */
@media (min-width: 768px) {
    .dialog-body {
        grid-template-columns: 1fr 1fr;
        padding: 3rem;
    }
}

/* LEFT SIDE: IMAGES */

.dialog-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Thumbnail Images */
.thumbnail-images {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.25rem;
}

.thumbnail-images::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-images::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.thumbnail-item:hover {
    border-color: #999;
}

.thumbnail-item.active {
    border-color: #000;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* RIGHT SIDE: PRODUCT INFO */

.dialog-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dialog-product-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

.dialog-product-category {
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.dialog-price {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dialog-price-current {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
}

.dialog-price-original {
    font-size: 1.25rem;
    color: #999;
    text-decoration: line-through;
}

.dialog-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* SIZE SELECTOR */

.size-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.size-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.size-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.size-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    min-width: 60px;
    text-align: center;
}

.size-btn:hover {
    border-color: #999;
}

.size-btn.active {
    border-color: #000;
    background: #000;
    color: white;
}

.size-btn.out-of-stock {
    opacity: 0.3;
    cursor: not-allowed;
}

.size-btn.out-of-stock:hover {
    border-color: #ddd;
}

/* ADD TO CART BUTTON */

.dialog-add-to-cart {
    width: 100%;
    padding: 1.25rem;
    background: #000;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.dialog-add-to-cart:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.dialog-add-to-cart:active {
    transform: translateY(0);
}

.dialog-add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* MOBILE OPTIMIZATIONS */

@media (max-width: 767px) {
    .dialog-content {
        max-width: 90vw;
        max-height: 85vh;
        border-radius: 16px;
    }
    
    .dialog-body {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .dialog-product-name {
        font-size: 1.5rem;
    }
    
    .dialog-price-current {
        font-size: 1.5rem;
    }
    
    .dialog-close {
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .thumbnail-item {
        width: 70px;
        height: 70px;
    }
}

/* Prevent body scroll when dialog is open */
body.dialog-open {
    overflow: hidden;
}

/* dialog box styles end */

/* color options styles start */

.color-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.color-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 3px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    outline: none;
    flex-shrink: 0;
    padding: 0;
}

.color-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.color-btn.active {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    animation: colorPulse 0.4s ease-out;
}

.color-btn:active {
    transform: scale(0.96);
}

@keyframes colorPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.25);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(0, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .color-btn {
        width: 44px;
        height: 44px;
    }
    
    .color-options {
        gap: 0.75rem;
    }
}

/* color options styles end */
