/* ===== PRODUCT DETAIL PAGE - COMPLETE STYLE ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.pdp-thumbnails {
    display: none;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: #000;
}

.pdp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
}

.pdp-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pdp-header-left .back-btn {
    font-size: 22px;
    cursor: pointer;
    color: #000;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.pdp-header-left .back-btn:hover {
    background: #f5f5f5;
}

.pdp-header-right {
    display: flex;
    gap: 16px;
}

.pdp-header-right button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.pdp-header-right button:hover {
    background: #f5f5f5;
}

.pdp-gallery {
    position: relative;
    width: 100%;
    background: #f8f8f8;
}

.pdp-main-image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    cursor: pointer;
}

.pdp-bottom {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.pdp-bottom > div {
    margin-bottom: 30px;
}

.pdp-best-seller {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ff4d6d;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    z-index: 10;
}

.pdp-wishlist {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    border: none;
    z-index: 10;
    transition: all 0.2s ease;
    color: #666;
}

.pdp-wishlist svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: transparent;
    transition: all 0.2s ease;
}

.pdp-wishlist.active {
    color: #ff3f6c;
    background: white;
}

.pdp-wishlist.active svg {
    fill: #ff3f6c;
    stroke: #ff3f6c;
}

.pdp-wishlist:hover {
    transform: scale(1.05);
}

.pdp-share {
    position: absolute;
    top: 16px;
    right: 72px;
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    border: none;
    z-index: 10;
    transition: all 0.2s ease;
}

.pdp-image-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 30px;
    z-index: 10;
}

.pdp-info {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.pdp-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.pdp-brand {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.pdp-header-circles {
    display: flex;
    gap: 4px;
    align-items: center;
}

.pdp-color-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    background-clip: padding-box;
}

.pdp-color-circle.active {
    border-color: #ff3f6c;
    transform: scale(1.2);
    box-shadow: 0 0 0 2px white, 0 0 0 4px #ff3f6c;
}

.pdp-color-more {
    font-size: 12px;
    color: #666;
    margin-left: 4px;
    cursor: pointer;
}

.pdp-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.pdp-title {
    font-size: 18px;
    font-weight: 500;
    color: #000;
    margin-bottom: 6px;
    line-height: 1.3;
}

.pdp-color-count {
    font-size: 12px;
    color: #ff3f6c;
    background: #fff0f3;
    padding: 2px 8px;
    border-radius: 12px;
    cursor: pointer;
}

.pdp-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.pdp-stars {
    color: #ffc107;
    font-size: 14px;
    letter-spacing: 1px;
}

.pdp-review-count {
    font-size: 13px;
    color: #666;
}

.pdp-price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pdp-current-price {
    font-size: 22px;
    font-weight: 700;
    color: #000;
}

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

.pdp-discount {
    font-size: 14px;
    font-weight: 600;
    color: #ff3f6c;
    background: #ffe8f0;
    padding: 4px 10px;
    border-radius: 30px;
}

.pdp-size {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.pdp-size-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pdp-size-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #000;
}

.pdp-size-chart {
    font-size: 13px;
    color: #ff3f6c;
    cursor: pointer;
}

.pdp-size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pdp-size-btn {
    min-width: 50px;
    height: 40px;
    border: 1px solid #d4d5d9;
    background: white;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    transition: all 0.2s ease;
}

.pdp-size-btn.active {
    background: white;
    color: #ff3f6c;
    border-color: #ff3f6c;
    border-width: 2px;
}

.pdp-size-btn.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    border-color: #ddd;
}

.pdp-actions {
    padding: 16px;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.pdp-add-to-cart {
    flex: 1;
    padding: 14px;
    background: #ff3f6c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.pdp-buy-now {
    flex: 1;
    padding: 14px;
    background: #000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.pdp-details {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.pdp-details h3 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
}

.pdp-details-list {
    list-style: none;
}

.pdp-details-list li {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.pdp-details-list li span:first-child {
    width: 20px;
    color: #666;
}

.pdp-details-list li span:last-child {
    flex: 1;
    color: #333;
}

.pdp-delivery {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.pdp-delivery h3 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
}

.pdp-pincode {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.pdp-pincode input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.pdp-pincode button {
    padding: 12px 20px;
    background: #ff3f6c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.pdp-delivery-info {
    margin: 12px 0;
    font-size: 14px;
    color: #03a685;
}

.pdp-return {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.pdp-cod {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.pdp-offers {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.pdp-offers h3 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
}

.pdp-offer-card {
    background: #fef7f0;
    border: 1px solid #ffe6d5;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.pdp-offer-card.bank-offer {
    background: #eaf3ff;
    border-color: #c2d9ff;
}

.pdp-offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pdp-offer-badge {
    font-size: 12px;
    font-weight: 600;
    color: #ff6b6b;
    background: #ffdede;
    padding: 4px 10px;
    border-radius: 20px;
}

.bank-offer .pdp-offer-badge {
    background: #d9e5ff;
    color: #2c6bff;
}

.pdp-offer-code {
    font-family: monospace;
    font-weight: 700;
    font-size: 14px;
    color: #ff6b6b;
    background: white;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px dashed #ffb3b3;
}

.bank-offer .pdp-offer-code {
    border-color: #99c2ff;
    color: #2c6bff;
}

.pdp-offer-desc {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.pdp-offer-tnc {
    font-size: 12px;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
}

.pdp-offer-more {
    margin-top: 12px;
    text-align: center;
    color: #ff3f6c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.pdp-ratings {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.pdp-ratings h3 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
}

.pdp-rating-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.pdp-avg-rating {
    font-size: 24px;
    font-weight: 700;
    color: #000;
}

.pdp-total-ratings {
    font-size: 13px;
    color: #666;
}

.pdp-review {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.pdp-review-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pdp-reviewer {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.pdp-review-rating {
    color: #ffc107;
    font-size: 12px;
}

.pdp-review-date {
    font-size: 11px;
    color: #999;
    margin-left: auto;
}

.pdp-review-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.pdp-review-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.pdp-review-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.pdp-review-nav button {
    background: none;
    border: 1px solid #ddd;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
}

.pdp-similar {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.pdp-similar h3 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
}

.pdp-similar-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
}

.pdp-similar-grid::-webkit-scrollbar {
    display: none;
}

.pdp-similar-card {
    min-width: 120px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.pdp-similar-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.pdp-similar-brand {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin: 8px 8px 2px;
}

.pdp-similar-name {
    font-size: 11px;
    color: #333;
    margin: 0 8px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdp-similar-price {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 8px 8px;
}

.pdp-similar-current {
    font-size: 13px;
    font-weight: 700;
    color: #000;
}

.pdp-similar-original {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
}

.pdp-size-error {
    color: #ff3f6c;
    font-size: 13px;
    margin-top: 8px;
    display: none;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.size-error-shake {
    animation: shake 0.5s ease;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.error-container {
    text-align: center;
    padding: 60px 20px;
}

.error-container h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.error-container p {
    color: #999;
    margin-bottom: 20px;
}

.btn-home {
    display: inline-block;
    padding: 12px 24px;
    background: #ff3f6c;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    15% { opacity: 1; transform: translate(-50%, 0); }
    85% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}

/* ===== POPUPS ===== */
.pdp-size-popup, .pdp-color-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pdp-size-popup.active, .pdp-color-popup.active {
    opacity: 1;
    visibility: visible;
}

.pdp-size-popup-content, .pdp-color-popup-content {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.pdp-size-popup.active .pdp-size-popup-content,
.pdp-color-popup.active .pdp-color-popup-content {
    transform: translateY(0);
}

.pdp-size-popup-header, .pdp-color-popup-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdp-size-popup-header h3, .pdp-color-popup-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.pdp-size-popup-close, .pdp-color-popup-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.pdp-size-popup-body {
    padding: 20px;
    overflow-y: auto;
}

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

.pdp-size-table th {
    text-align: left;
    padding: 12px 8px;
    background: #f8f8f8;
    font-size: 13px;
    font-weight: 600;
}

.pdp-size-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.color-scroll-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    z-index: 10000;
    animation: slideUp 0.3s ease;
    padding-bottom: 20px;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.color-scroll-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    font-size: 16px;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.color-scroll-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
}

.color-scroll-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 16px;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: #ff3f6c #f0f0f0;
    -webkit-overflow-scrolling: touch;
}

.color-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.color-scroll-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.color-scroll-container::-webkit-scrollbar-thumb {
    background: #ff3f6c;
    border-radius: 10px;
}

.color-scroll-item {
    flex: 0 0 auto;
    width: 100px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.color-scroll-item.selected {
    border: 2px solid #ff3f6c;
}

.color-scroll-image {
    width: 100px;
    height: 120px;
    overflow: hidden;
}

.color-scroll-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.color-scroll-info {
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
}

.color-scroll-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
}

.color-scroll-name {
    font-size: 12px;
    font-weight: 500;
    margin: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40px;
}

.color-scroll-check {
    color: #ff3f6c;
    font-weight: bold;
    font-size: 12px;
}

.offers-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f8f8f8;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.15);
    z-index: 10000;
    animation: slideUp 0.3s ease;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
}

.offers-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.offers-popup-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.offers-count {
    background: #ff3f6c;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 20px;
}

.offers-popup-close {
    background: #f0f0f0;
    border: none;
    font-size: 18px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offers-tabs {
    display: flex;
    padding: 8px 16px;
    gap: 8px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
}

.offers-tab {
    flex: 1;
    padding: 8px 0;
    font-size: 13px;
    text-align: center;
    font-weight: 600;
    color: #666;
    background: #f5f5f5;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
}

.offers-tab.active {
    background: #ff3f6c;
    color: white;
}

.offers-popup-content {
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f8f8f8;
}

.offers-popup-item {
    padding: 12px 14px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.offers-popup-item.bank-offer {
    border-left: 4px solid #ff3f6c;
}

.offers-popup-item.normal-offer {
    border-left: 4px solid #27ae60;
}

.offers-popup-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.offers-popup-badge {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f0f0f0;
}

.bank-offer .offers-popup-badge {
    background: #ffe8e8;
    color: #ff3f6c;
}

.normal-offer .offers-popup-badge {
    background: #e8f5e9;
    color: #27ae60;
}

.offers-popup-code {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    background: #f8f8f8;
    padding: 3px 10px;
    border-radius: 20px;
}

.offers-popup-desc {
    font-size: 13px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.offers-popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.offers-popup-min {
    color: #666;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 20px;
}

.offers-popup-tnc {
    color: #ff3f6c;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.offers-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 14px;
    background: white;
    border-radius: 16px;
}

.offers-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1023px) {
    .pdp-header {
        padding-top: max(12px, env(safe-area-inset-top, 0px)) !important;
        padding-left: max(16px, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(16px, env(safe-area-inset-right, 0px)) !important;
    }
    
    .product-desktop-header {
        display: none !important;
    }
    
    .pdp-main {
        flex-direction: column;
        padding: 10px;
    }
    
    .pdp-gallery {
        max-width: 100%;
    }
    
    .pdp-similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pdp-actions {
        position: sticky;
        bottom: 0;
        background: white;
        padding: 10px;
    }
}

/* ===== DESKTOP RESPONSIVE ===== */
@media (min-width: 1024px) {
    body {
        background: #f5f5f5;
    }
    
    .pdp-header {
        display: none !important;
    }
    
    .product-desktop-header {
        display: block !important;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: white;
    }
    
    .web-header {
        display: block !important;
    }
    
    .container {
        max-width: 1200px;
        margin: auto;
    }
    
    .pdp-main {
        display: grid;
        grid-template-columns: 100px 520px 1fr;
        gap: 40px;
        align-items: flex-start;
        max-width: 1300px;
        margin: 0 auto;
        padding: 24px;
    }
    
    .pdp-thumbnails {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        position: sticky;
        top: 100px;
    }
    
    .pdp-thumb {
        width: 80px;
        height: 100px;
        object-fit: cover;
        border: 1px solid #eee;
        border-radius: 6px;
        cursor: pointer;
        transition: 0.2s;
    }
    
    .pdp-thumb:hover {
        border-color: #ff3f6c;
    }
    
    .pdp-gallery {
        width: 520px;
        background: #f8f8f8;
        border-radius: 8px;
        overflow: hidden;
        position: relative;
    }
    
    .pdp-main-image {
        width: 100%;
        height: auto;
        aspect-ratio: 3/4;
        object-fit: contain;
        background: white;
    }
    
    .pdp-right {
        width: 100%;
        padding: 0;
    }
    
    .pdp-info, .pdp-size, .pdp-actions {
        border: none !important;
        padding: 0 !important;
        margin-bottom: 20px;
    }
    
    .pdp-title {
        font-size: 22px;
        font-weight: 600;
    }
    
    .pdp-current-price {
        font-size: 26px;
    }
    
    .pdp-actions {
        position: sticky;
        bottom: 0;
        background: #fff;
        padding-top: 12px;
        z-index: 10;
    }
    
    .pdp-add-to-cart, .pdp-buy-now {
        height: 52px;
        font-size: 16px;
        border-radius: 6px;
    }
    
    .pdp-bottom {
        max-width: 1200px;
        margin: 0 auto 30px;
        padding: 0 20px;
    }
    
    .pdp-details, .pdp-delivery, .pdp-offers, .pdp-ratings, .pdp-similar {
        background: #fff;
        border-radius: 12px;
        padding: 24px;
        border: 1px solid #eee;
        margin-bottom: 24px;
    }
    
    .pdp-similar-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        overflow: visible;
    }
    
    .pdp-similar-card {
        min-width: auto;
    }
}
/* Cart Confirmation Popup */
.cart-confirmation-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    animation: fadeIn 0.2s ease;
}

.cart-confirmation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.cart-confirmation-content {
    position: relative;
    background: white;
    width: 320px;
    max-width: 85%;
    border-radius: 28px;
    padding: 28px 24px;
    text-align: center;
    animation: popUp 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 100001;
}

.cart-confirmation-icon {
    margin-bottom: 16px;
}

.cart-confirmation-icon svg {
    width: 64px;
    height: 64px;
}

.cart-confirmation-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.cart-confirmation-product {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.4;
    word-break: break-word;
}

.cart-confirmation-actions {
    display: flex;
    gap: 12px;
}

.cart-confirmation-viewbag {
    flex: 1;
    background: #ff3f6c;
    color: white;
    border: none;
    padding: 14px 0;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-confirmation-viewbag:hover {
    background: #e6395e;
    transform: translateY(-2px);
}

.cart-confirmation-continue {
    flex: 1;
    background: #f5f5f5;
    color: #333;
    border: none;
    padding: 14px 0;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-confirmation-continue:hover {
    background: #e8e8e8;
}

.cart-confirmation-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f0f0f0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-confirmation-close:hover {
    background: #e0e0e0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popUp {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
        visibility: hidden;
    }
}
/* ===== MOBILE FIX - APP UI RESTORE ===== */
@media screen and (max-width: 1023px) {
    body {
        background: #fff !important;
    }
    
    .pdp-main {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .pdp-thumbnails {
        display: none !important;
    }
    
    .pdp-gallery {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        position: relative !important;
        border-radius: 0 !important;
    }
    
    .pdp-main-image {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 3/4 !important;
        object-fit: cover !important;
        border-radius: 0 !important;
    }
    
    .pdp-right {
        width: 100% !important;
        padding: 0 16px !important;
    }
    
    .pdp-info, .pdp-size, .pdp-actions {
        padding: 12px 0 !important;
        margin-bottom: 12px !important;
    }
    
    .pdp-header {
        display: flex !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 100 !important;
        background: #fff !important;
        padding: 12px 16px !important;
        padding-top: max(12px, env(safe-area-inset-top, 0px)) !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    .pdp-header-left .back-btn {
        font-size: 22px !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    .pdp-header-right {
        gap: 12px !important;
    }
    
    .pdp-header-right button svg {
        width: 20px !important;
        height: 20px !important;
        stroke: #333 !important;
    }
    
    .pdp-brand {
        font-size: 14px !important;
    }
    
    .pdp-title {
        font-size: 18px !important;
        font-weight: 600 !important;
        margin: 8px 0 !important;
    }
    
    .pdp-current-price {
        font-size: 22px !important;
    }
    
    .pdp-size-btn {
        min-width: 55px !important;
        height: 42px !important;
        font-size: 14px !important;
    }
    
    .pdp-add-to-cart, .pdp-buy-now {
        padding: 14px !important;
        font-size: 15px !important;
    }
    
    .pdp-bottom {
        padding: 0 16px !important;
        margin: 20px auto !important;
    }
    
    .pdp-details, .pdp-delivery, .pdp-offers, .pdp-ratings, .pdp-similar {
        padding: 16px !important;
        margin-bottom: 16px !important;
        background: #fff !important;
        border: 1px solid #f0f0f0 !important;
        border-radius: 12px !important;
    }
    
    .pdp-similar-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        overflow: visible !important;
    }
    
    .pdp-similar-card {
        min-width: auto !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }
    
    .pdp-wishlist {
        width: 38px !important;
        height: 38px !important;
        font-size: 18px !important;
        top: 12px !important;
        right: 12px !important;
    }
    
    .pdp-share {
        width: 38px !important;
        height: 38px !important;
        font-size: 18px !important;
        top: 12px !important;
        right: 58px !important;
    }
    
    .pdp-image-counter {
        bottom: 12px !important;
        right: 12px !important;
        font-size: 11px !important;
        padding: 4px 10px !important;
    }
    
    .pdp-best-seller {
        top: 12px !important;
        left: 12px !important;
        font-size: 10px !important;
        padding: 4px 10px !important;
    }
}
.pdp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.pdp-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdp-header-left .back-btn {
    font-size: 24px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.header-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.pdp-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pdp-header-right button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.pdp-header-right button svg {
    stroke: #333;
    fill: none;
    transition: all 0.2s;
}

.pdp-header-right button:hover svg {
    stroke: #ff3f6c;
}

@media (max-width: 480px) {
    .header-logo-img {
        height: 28px;
    }
    
    .pdp-header-left .back-btn {
        font-size: 20px;
        width: 32px;
        height: 32px;
    }
    
    .pdp-header-left {
        gap: 8px;
    }
    
    .pdp-header-right {
        gap: 12px;
    }
    
    .pdp-header-right button svg {
        width: 20px;
        height: 20px;
    }
}
.pdp-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdp-header-right button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.pdp-header-right button svg {
    width: 20px;
    height: 20px;
    stroke: #333;
    fill: none;
}

@media (max-width: 480px) {
    .pdp-header-right {
        gap: 6px;
    }
    
    .pdp-header-right button svg {
        width: 18px;
        height: 18px;
    }
}
body.product-detail-page,
body.product-detail-page .page-content,
body.product-detail-page .pdp-main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: #fff;
}

@media (max-width: 1023px) {
    .container,
    .page-content,
    .product-desktop-header {
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
@media (min-width: 1024px) {
    .offers-desktop-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 100000;
    }
    
    .offers-desktop-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
    }
    
    .offers-desktop-content {
        position: relative;
        background: white;
        width: 500px;
        max-width: 90%;
        max-height: 80vh;
        border-radius: 16px;
        overflow: hidden;
        animation: fadeInUp 0.2s ease;
        display: flex;
        flex-direction: column;
    }
    
    .offers-desktop-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        border-bottom: 1px solid #f0f0f0;
        background: white;
    }
    
    .offers-desktop-header h3 {
        font-size: 18px;
        font-weight: 700;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .offers-desktop-close {
        background: #f0f0f0;
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        font-size: 18px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .offers-desktop-tabs {
        display: flex;
        padding: 12px 20px;
        gap: 12px;
        background: white;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .offers-desktop-tab {
        flex: 1;
        padding: 10px 0;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        background: #f5f5f5;
        border: none;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .offers-desktop-tab.active {
        background: #ff3f6c;
        color: white;
    }
    
    .offers-desktop-content-body {
        overflow-y: auto;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
.cart-icon-btn {
    position: relative;
}

.cart-badge {
    position: absolute;

    top: -4px;
    right: -4px;

    background: #ff3f6c;
    color: #fff;

    font-size: 10px;
    font-weight: 600;

    min-width: 16px;
    height: 16px;

    padding: 0 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border: 2px solid #fff;

    line-height: 1;

    z-index: 1000;
}
@media (min-width: 1024px) {

    .pdp-bottom .pdp-details {
        display: none;
    }

    .pdp-details-desktop {
        display: block;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 16px;
        margin-top: 10px;
    }

}
@media (max-width: 1023px) {
    .pdp-details-desktop {
        display: none !important;
    }
}
@media (min-width: 1024px) {
    .pdp-bottom .pdp-details {
        display: none !important;
    }
}
@media screen and (min-width: 1024px) {
    .pdp-color-desktop-panel {
        position: absolute;
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        padding: 20px;
        z-index: 1000;
        min-width: 320px;
        border: 1px solid #e8e8e8;
        animation: fadeInUp 0.2s ease;
    }
    
    .pdp-color-desktop-panel-header {
        font-size: 14px;
        font-weight: 600;
        color: #282c3f;
        padding-bottom: 12px;
        margin-bottom: 12px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .pdp-color-desktop-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-height: 320px;
        overflow-y: auto;
        padding-right: 4px;
    }
    
    .pdp-color-desktop-list::-webkit-scrollbar {
        width: 4px;
    }
    
    .pdp-color-desktop-list::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .pdp-color-desktop-list::-webkit-scrollbar-thumb {
        background: #ff3f6c;
        border-radius: 4px;
    }
    
    .pdp-color-desktop-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        cursor: pointer;
        border-radius: 12px;
        transition: all 0.2s ease;
        border: 1px solid transparent;
    }
    
    .pdp-color-desktop-item:hover {
        background: #fafafa;
        border-color: #ff3f6c;
    }
    
    .pdp-color-desktop-item.selected {
        background: #fff5f7;
        border-color: #ff3f6c;
    }
    
    .pdp-color-desktop-dot {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 1px solid #e0e0e0;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .pdp-color-desktop-name {
        flex: 1;
        font-size: 13px;
        font-weight: 500;
        color: #282c3f;
    }
    
    .pdp-color-desktop-check {
        color: #ff3f6c;
        font-size: 16px;
        font-weight: bold;
    }
    
    .pdp-color-desktop-thumb {
        width: 48px;
        height: 48px;
        object-fit: cover;
        border-radius: 8px;
        border: 1px solid #f0f0f0;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}