/* Shop Layout */
.shop-section .container {
    display: block;
}

/* Main Content */
.shop-main {
    width: 100%;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.shop-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
}

.shop-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.shop-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff4d4d;
    /* Red badge like ref */
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    z-index: 2;
}

.shop-card-img {
    position: relative;
    padding: 0;
    background: #f9f9f9;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1/1;
    /* Square containers */
}

.shop-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shop-card:hover .shop-card-img img {
    transform: scale(1.05);
}

.shop-card-content {
    padding: 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.shop-price {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-price span.original,
.shop-price-original {
    text-decoration: line-through;
    color: #bbb;
    font-weight: 400;
}

.shop-price-current {
    font-weight: 700;
    color: var(--accent-color);
}

.shop-offer-badge {
    background: var(--accent-color);
    color: #fff;
}

.shop-title {
    font-family: 'Montserrat', sans-serif;
    /* Cleaner font for title */
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.shop-desc {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.shop-stars {
    display: flex;
    gap: 2px;
    color: #ffc107;
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
}

.shop-btn {
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.9rem;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 0;
    /* Sharp luxury look */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.shop-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

/* Responsive */
@media (max-width: 1200px) {
    .shop-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .shop-section .container {
        padding: 0 5%;
    }

    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }

    .shop-card-content {
        padding: 1rem;
    }

    .shop-title {
        font-size: 0.95rem;
    }
}

/* Product Modal */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Slightly darker/more solid */
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    backdrop-filter: blur(8px);
}

.product-modal-overlay.active {
    display: flex;
    opacity: 1;
    justify-content: center;
    align-items: flex-start;
    /* scroll from top */
    padding: 2rem 0;
}

.product-modal-content {
    background: #ffffff;
    /* pure white */
    width: 90%;
    max-width: 1100px;
    border-radius: 8px;
    position: relative;
    padding: 3rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    margin: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #555555;
    transition: color 0.3s;
    z-index: 10;
}

.close-modal:hover {
    color: var(--accent-gold);
}

/* Modal Grid */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.pd-image-container {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: zoom-in;
}

.pd-image-container img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pd-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.pd-thumbnail {
    width: 70px;
    height: 70px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.3s;
}

.pd-thumbnail.active {
    border-color: var(--accent-gold);
    border-width: 2px;
}

.pd-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.pd-info {
    display: flex;
    flex-direction: column;
}

.pd-breadcrumbs {
    font-size: 0.85rem;
    color: #555555;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pd-title {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

.pd-rating {
    color: #ffd700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pd-rating span {
    color: #555555;
    margin-left: 5px;
}

.pd-price {
    font-size: 1.8rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pd-price .original {
    font-size: 1.2rem;
    color: #ccc;
    text-decoration: line-through;
    font-weight: 400;
}

.pd-description {
    font-size: 1rem;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

/* Actions - Premium Refinement */
.pd-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: stretch;
}

.quantity-input {
    display: flex;
    background: #f8f8f8;
    border-radius: 50px;
    /* Capsule shape */
    padding: 5px;
    border: 1px solid #eee;
    width: 130px;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.quantity-input:hover {
    background: #fff;
    border-color: var(--accent-gold);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.quantity-input button {
    width: 35px;
    height: 35px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    border-radius: 50%;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.quantity-input button:hover {
    background: var(--accent-gold);
    color: white;
}

.quantity-input input {
    width: 30px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    color: var(--primary-color);
}

.btn-add-cart-large {
    flex: 1;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.btn-add-cart-large::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: all 0.6s ease;
}

.btn-add-cart-large:hover::before {
    left: 100%;
}

.btn-add-cart-large:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.btn-add-cart-large:active {
    transform: translateY(0);
}

/* Meta & Trust */
.pd-meta {
    font-size: 0.85rem;
    color: #555555;
    margin-bottom: 2rem;
}

.pd-meta div {
    margin-bottom: 0.5rem;
}

.pd-meta strong {
    color: var(--primary-color);
    min-width: 80px;
    display: inline-block;
}

.pd-trust {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.trust-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #555555;
}

.trust-row i {
    color: var(--accent-gold);
}

/* Tabs */
.pd-tabs-header {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
    justify-content: center;
}

.pd-tab {
    padding-bottom: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s;
}

.pd-tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-gold);
}

.pd-tab-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #555555;
    line-height: 1.8;
    display: none;
}

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

/* Product modal: reviews list & form */
.pd-reviews-list {
    text-align: left;
    margin-bottom: 1.5rem;
}

.pd-no-reviews {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.pd-review-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.pd-review-item:last-of-type {
    border-bottom: none;
}

.pd-review-meta {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.pd-review-stars-inline {
    color: #c5a059;
    margin-left: 0.5rem;
}

.pd-review-role {
    color: #666;
    font-weight: 400;
}

.pd-review-comment {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.pd-review-success-msg {
    background: rgba(39, 174, 96, 0.1);
    color: #1e8449;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.pd-review-form-wrap {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    text-align: left;
}

.pd-review-form-wrap h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.pd-review-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pd-review-form-group {
    margin-bottom: 1rem;
}

.pd-review-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.35rem;
}

.pd-review-form-group label .req {
    color: #c5a059;
}

.pd-review-form-group input,
.pd-review-form-group textarea {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.pd-review-form-group textarea {
    resize: vertical;
    min-height: 70px;
}

.pd-review-stars {
    display: flex;
    gap: 0.2rem;
}

.pd-review-stars .star-label {
    cursor: pointer;
    margin: 0;
}

.pd-review-stars .star-label input {
    display: none;
}

.pd-review-stars .star {
    font-size: 1.35rem;
    color: #ddd;
    transition: color 0.15s;
}

.pd-review-stars .star-label input:checked~.star {
    color: #c5a059;
}

.pd-review-stars[data-rating="1"] .star-label:nth-child(1) .star,
.pd-review-stars[data-rating="2"] .star-label:nth-child(-n+2) .star,
.pd-review-stars[data-rating="3"] .star-label:nth-child(-n+3) .star,
.pd-review-stars[data-rating="4"] .star-label:nth-child(-n+4) .star,
.pd-review-stars[data-rating="5"] .star-label:nth-child(-n+5) .star {
    color: #c5a059;
}

@media (max-width: 576px) {
    .pd-review-form-row {
        grid-template-columns: 1fr;
    }
}

/* Related */
.related-products {
    margin-top: 4rem;
}

.related-products h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .product-modal-overlay.active {
        padding: 1rem 0;
        align-items: flex-start;
    }

    .product-modal-content {
        padding: 2rem 1.5rem;
        width: 94%;
        max-width: none;
        margin: 0 auto;
        border-radius: 12px;
    }

    .close-modal {
        top: 12px;
        right: 14px;
        font-size: 1.75rem;
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .pd-title {
        font-size: 2rem;
    }

    .pd-image-container img {
        max-height: 400px;
    }

    .pd-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        width: 100%;
    }

    .quantity-input {
        width: 100%;
        max-width: 180px;
        margin: 0 auto;
        align-self: center;
    }

    .btn-add-cart-large {
        width: 100%;
        padding: 16px 24px;
        min-height: 52px;
        font-size: 0.9rem;
    }

    .pd-tabs-header {
        gap: 1rem;
        overflow-x: auto;
        justify-content: flex-start;
        white-space: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .pd-tab {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .product-modal-overlay.active {
        padding: 0.5rem 0;
    }

    .product-modal-content {
        padding: 1.25rem 1rem;
        width: 96%;
        border-radius: 12px;
    }

    .close-modal {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
        min-width: 40px;
        min-height: 40px;
    }

    .pd-breadcrumbs {
        font-size: 0.75rem;
    }

    .pd-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

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

    .pd-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .pd-actions {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .quantity-input {
        max-width: 100%;
        padding: 8px 12px;
        min-height: 48px;
    }

    .quantity-input button {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .quantity-input input {
        font-size: 1.1rem;
    }

    .btn-add-cart-large {
        min-height: 56px;
        padding: 18px 20px;
        font-size: 0.95rem;
        letter-spacing: 1.5px;
    }

    .pd-meta {
        font-size: 0.8rem;
    }

    .pd-trust {
        padding-top: 1rem;
    }

    .trust-row {
        font-size: 0.85rem;
    }

    .pd-tabs-header {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .pd-tab {
        font-size: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .pd-tab-content {
        text-align: left;
        font-size: 0.9rem;
    }
}