/* Product Detail Page Styles */

.product-detail-page {
    min-height: 100vh;
    background-color: #fff9e7;
    padding: 40px 0 60px;
}

/* Back Navigation */
.back-navigation {
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #e5aa03;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #000000;
}

.back-link svg {
    width: 20px;
    height: 20px;
}

/* Product Detail Content */
.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Product Gallery */
.product-gallery {
    display: flex;
    gap: 20px;
}

.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thumbnail-item {
    width: 80px;
    height: 120px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f5f5f5;
}

.thumbnail-item:hover {
    border-color: #d4af37;
}

.thumbnail-item.active {
    border-color: #000000;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-main-image {
    flex: 1;
    position: relative;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    max-height: 800px;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-main-image .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 10;
    letter-spacing: 0.5px;
    background-color: #000000;
    color: #ffffff;
}

/* Product Information */
.product-information {
    padding: 5px 0;
}

.product-title {
    font-size: 28px;
    font-weight: 600;
    color: #e5aa03;;
    margin: 0 0 16px 0;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: #e5aa03;;
    margin: 0 0 30px 0;
}

.product-price-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 30px 0;
}

.product-price-group .product-price.sale {
    color: #ff5644;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.product-price-group .product-price-old {
    font-size: 18px;
    color: #999999;
    text-decoration: line-through;
    margin: 0;
}

/* Size Selection */
.size-selection {
    margin-bottom: 24px;
}

.size-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #e5aa03;
    margin-bottom: 12px;
}

.size-options {
    display: flex;
    gap: 10px;
}

.size-btn {
    min-width: 50px;
    height: 44px;
    padding: 0 16px;
    background-color: transparent;
    border: 1px solid #e5aa03;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #e5aa03;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-btn:hover {
    border-color: #000000;
}

.size-btn.active {
    background-color: #e5aa03;
    border-color: #e5aa03;
    color: #ffffff;
}

.size-btn.out-of-stock {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
    pointer-events: none;
}

.stock-message {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #e74c3c;
    animation: pulse-stock 1.5s ease-in-out infinite;
}

@keyframes pulse-stock {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.stock-message svg {
    flex-shrink: 0;
}

/* Color Selection */
.color-selection {
    margin-bottom: 24px;
}

.color-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
}

.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option-btn {
    min-width: 44px;
    height: 44px;
    padding: 6px;
    background-color: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-option-btn:hover {
    border-color: #000000;
}

.color-option-btn.active {
    border-color: #000000;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #000000;
}

.color-option-btn .color-swatch {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}

.color-option-btn .color-name {
    font-size: 12px;
    font-weight: 600;
    color: #e5aa03;
    padding: 0 8px;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #e5aa03;
    border-radius: 4px;
    overflow: hidden;
    height: 50px;
}

.quantity-btn {
    width: 44px;
    height: 100%;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
     color: #e5aa03;
     border-left: 1px solid rgb(255, 189, 0);
    border-right: 1px solid rgb(255, 189, 0);
}

.quantity-btn:hover {
    background-color: #f5f5f5;
}

.quantity-input {
    width: 60px;
    height: 100%;
    border: none;
    text-align: center;
       font-size: 1.2rem;
    font-weight: 600;
    outline: none;
    -moz-appearance: textfield;
    color: #e5aa03;
    background-color: transparent;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
    background-color: #e5aa03;
    color: #000000;
}

.add-to-cart-btn {
    flex: 1;
    height: 50px;
    background-color: #e5aa03;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-to-cart-btn:hover {
    background-color: #e5aa03;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.size-chart-btn,
.shop-look-btn {
    height: 50px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-chart-btn {
    background-color: transparent;
    border: 1px solid #e5aa03;
    color: #e5aa03;
}

.size-chart-btn:hover {
    border-color: #000000;
}

.shop-look-btn {
    background-color: #f4c430;
    border: none;
    color: #000000;
}

.shop-look-btn:hover {
    background-color: #d4af37;
}

/* Payment Info */
.payment-info {
    padding: 16px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 16px;
}

.installment-text {
    font-size: 14px;
    color: #e5aa03;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.installment-text strong {
    color: #000000;
}

.payment-badge {
    background-color: #00d4b4;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    text-transform: lowercase;
}

/* Delivery Info */
.delivery-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 24px;
    font-size: 14px;
    color: #e5aa03;
}

.delivery-info svg {
    width: 20px;
    height: 20px;
}

.delivery-info strong {
    color: #000000;
}

/* Product Details Accordion */
.product-details-accordion {
    margin-top: 30px;
}

.accordion-item {
    border-bottom: 1px solid #e5e5e5;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #e5aa03;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.accordion-header:hover {
    color: #000000;
}

.accordion-header svg {
    transition: transform 0.3s ease;
}

.accordion-header.active svg {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 500px;
    padding-bottom: 18px;
    color: #e5aa03;
}

.accordion-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #e5aa03;
    margin: 0 0 12px 0;
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

.accordion-content ul,
.accordion-content ol {
    font-size: 14px;
    line-height: 1.6;
    color: #e5aa03;
    margin: 0 0 12px 0;
    padding-left: 24px;
}

.accordion-content ul:last-child,
.accordion-content ol:last-child {
    margin-bottom: 0;
}

.accordion-content li {
    margin-bottom: 8px;
}

.accordion-content li:last-child {
    margin-bottom: 0;
}

.accordion-content strong {
    color: #000000;
    font-weight: 600;
}

.accordion-content em {
    font-style: italic;
}

.accordion-content br {
    line-height: 1.6;
}

/* Related Products Section */
.related-products-section {
    margin-top: 80px;
    padding-top: 60px;
    padding-bottom: 60px;
    border-top: 1px solid #e5e5e5;
}

.related-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    margin-bottom: 40px;
    color: #e5aa03;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
    row-gap: 50px;
}

.related-product-card {
    position: relative;
    transition: transform 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-8px);
}

.related-product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-product-image {
    position: relative;
    width: 100%;
    padding-bottom: 150%;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.related-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.05);
}

.related-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #000000;
    color: #ffffff;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 3px;
    z-index: 1;
}

.related-badge.bestseller {
    background-color: #f4c430;
    color: #000000;
}

.related-product-info {
    padding: 12px 4px 0;
}

.aed-icon1 {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-top: -5px;
}

.aed-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 2px;
}

.related-product-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #e5aa03;
    margin: 0 0 10px 0;
    line-height: 1.4;
    font-family: "Noto Serif", serif;
}

.related-product-price {
    font-size: 15px;
    font-weight: 700;
    margin: 6px 0 0 0;
    color: #e5aa03;
}

.related-price-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 0 0;
    flex-wrap: wrap;
}

.related-product-price.sale {
    color: #ff5644;
}

.related-product-price-old {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.related-discount-badge {
    background: #ff5644;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.related-size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.related-size-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #e5aa03;
    background: transparent;
    font-size: 0.72rem;
    font-family: "Noto Serif", serif;
    letter-spacing: 0.05em;
    cursor: default;
    color: #000;
    font-weight: 700;
}

/* Shop the Look Drawer */
.shop-look-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.shop-look-drawer.active {
    display: flex;
    justify-content: flex-end;
}

.shop-look-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.shop-look-panel {
    position: relative;
    width: 480px;
    max-width: 90%;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1;
}

.shop-look-drawer.active .shop-look-panel {
    transform: translateX(0);
}

.shop-look-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e5e5e5;
}

.shop-look-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
}

.shop-look-close {
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.shop-look-close:hover {
    background-color: #f5f5f5;
}

.shop-look-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.shop-look-subtitle {
    font-size: 14px;
    color: #666666;
    margin-bottom: 24px;
}

.look-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
}

.look-item:last-child {
    border-bottom: none;
}

.look-item-image {
    width: 120px;
    height: 180px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f5f5f5;
    display: block;
    transition: opacity 0.2s ease;
}

.look-item-image:hover {
    opacity: 0.8;
}

.look-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.look-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.look-item-name {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 8px 0;
    color: #000000;
}

.look-item-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.look-item-name a:hover {
    color: #666666;
}

.look-item-price {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #000000;
}

.look-item-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.look-size-select {
    flex: 1;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s;
}

.look-size-select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #999999;
}

.look-size-select:hover:not(:disabled) {
    border-color: #000000;
}

.look-size-select:focus {
    outline: none;
    border-color: #000000;
}

.look-add-btn {
    width: 44px;
    height: 44px;
    border: 1px solid #000000;
    background-color: #000000;
    color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.look-add-btn:hover {
    background-color: #e5aa03;
}

.look-add-btn.added {
    background-color: #4caf50;
    border-color: #4caf50;
}

.shop-look-footer {
    padding: 24px;
    border-top: 1px solid #e5e5e5;
    background-color: #ffffff;
}

.look-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.look-total-label {
    font-size: 16px;
    font-weight: 500;
    color: #000000;
}

.look-total-price {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
}

.look-add-all-btn {
    width: 100%;
    height: 50px;
    border: none;
    background-color: #000000;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.look-add-all-btn:hover {
    background-color: #e5aa03;
}

/* Size Chart Modal */
.size-chart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.size-chart-modal.active {
    display: flex;
}

.size-chart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.size-chart-container {
    position: relative;
    z-index: 2;
    background-color: #ffffff;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.size-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid #e5e5e5;
}

.size-chart-title {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.size-chart-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-chart-close:hover {
    background-color: #000000;
    color: #ffffff;
}

.size-chart-close:hover svg path {
    stroke: #ffffff;
}

.size-chart-body {
    padding: 30px;
}

.size-chart-description {
    font-size: 14px;
    color: #666666;
    margin: 0 0 24px 0;
    font-style: italic;
}

.size-chart-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

.size-chart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.size-chart-table thead {
    background-color: #f8f8f8;
}

.size-chart-table th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 700;
    color: #000000;
    border-bottom: 2px solid #e5e5e5;
    white-space: nowrap;
}

.size-chart-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e5e5;
    color: #e5aa03;
}

.size-chart-table tbody tr:hover {
    background-color: #f8f8f8;
}

.size-chart-table td:first-child {
    font-weight: 700;
    color: #000000;
}

/* Style any table inside size chart wrapper */
.size-chart-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.size-chart-table-wrapper table thead {
    background-color: #f8f8f8;
}

.size-chart-table-wrapper table th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 700;
    color: #000000;
    border-bottom: 2px solid #e5e5e5;
    white-space: nowrap;
}

.size-chart-table-wrapper table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e5e5;
    color: #e5aa03;
}

.size-chart-table-wrapper table tbody tr:hover {
    background-color: #f8f8f8;
}

.size-chart-table-wrapper table td:first-child,
.size-chart-table-wrapper table th:first-child {
    font-weight: 700;
    color: #000000;
}

.no-size-chart {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
    font-size: 16px;
}

.size-chart-tips {
    background-color: #f8f8f8;
    padding: 24px;
    border-radius: 6px;
}

.tips-title {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 16px 0;
}

.tips-list {
    margin: 0 0 16px 0;
    padding-left: 20px;
}

.tips-list li {
    font-size: 14px;
    color: #e5aa03;
    line-height: 1.8;
    margin-bottom: 8px;
}

.tips-list li strong {
    color: #000000;
}

.tips-note {
    font-size: 13px;
    color: #666666;
    margin: 0;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 992px) {
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-gallery {
        flex-direction: column;
    }

    .product-thumbnails {
        flex-direction: row;
        order: 2;
    }

    .product-main-image {
        order: 1;
        max-height: 600px;
    }
}

@media (max-width: 1024px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
        row-gap: 40px;
    }
}

@media (max-width: 768px) {
    .product-detail-page {
        padding: 20px 0 40px;
    }

    .back-navigation {
        margin-bottom: 20px;
    }

    .product-detail-content {
        gap: 30px;
    }

    .product-title {
        font-size: 24px;
    }

    .product-price {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .product-main-image {
        max-height: 500px;
    }

    .thumbnail-item {
        width: 60px;
        height: 90px;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .size-chart-container {
        width: 95%;
        max-height: 85vh;
    }

    .shop-look-panel {
        width: 100%;
        max-width: 100%;
    }

    .look-item {
        flex-direction: column;
    }

    .look-item-image {
        width: 100%;
        height: 240px;
    }

    .size-chart-header {
        padding: 20px;
    }

    .size-chart-title {
        font-size: 20px;
    }

    .size-chart-body {
        padding: 20px;
    }

    .size-chart-table {
        font-size: 13px;
    }

    .size-chart-table th,
    .size-chart-table td {
        padding: 10px 8px;
    }

    .shop-look-panel {
        width: 100%;
        max-width: 100%;
    }

    .look-item {
        flex-direction: column;
    }

    .look-item-image {
        width: 100%;
        height: 240px;
    }

    .related-products-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .related-products-section {
        margin-top: 60px;
        padding-top: 40px;
    }

    .related-title {
        font-size: 20px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .product-actions {
        flex-direction: column;
    }

    .quantity-selector {
        width: 100%;
    }

    .product-title {
        font-size: 20px;
    }

    .product-price {
        font-size: 18px;
    }

    .size-options {
        flex-wrap: wrap;
    }
}
