/* ============================================= */
/*           GLOBAL & LAYOUT STYLES              */
/* ============================================= */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.product-page {
    padding-top: 180px;
    min-height: 100vh;
}

.product-layout {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding-top: -30px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 40px;
    font-size: 0.9rem;
    color: var(--deep-teal);
    opacity: 0.7;
}

.breadcrumb a {
    color: var(--deep-teal);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

/* ============================================= */
/*           PRODUCT GALLERY STYLES              */
/* ============================================= */

.product-gallery {
    width: 45%;
    height: fit-content;
}

.main-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    aspect-ratio: 4/4;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.zoom-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--deep-teal);
}

.main-image:hover .zoom-btn {
    opacity: 1;
}

.zoom-btn:hover {
    transform: scale(1.1);
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.thumbnail {
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
}

.thumbnail:hover {
    border-color: var(--mid-teal);
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--deep-teal);
}

/* ============================================= */
/*           PRODUCT INFO STYLES                 */
/* ============================================= */

.product-info {
    padding: 10px 0;
    width: 45%;
}

.product-badge-top {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(2, 74, 88, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--deep-teal);
    font-weight: 600;
    margin-bottom: 15px;
}

.product-title {
    font-family: var(--font-headline);
    font-size: 2.5rem;
    color: var(--deep-teal);
    margin-bottom: 15px;
    font-weight: 600;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.current-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--deep-teal);
}

.original-price {
    font-size: 1.3rem;
    color: var(--deep-teal);
    opacity: 0.5;
    text-decoration: line-through;
}

.discount-badge {
    padding: 6px 12px;
    background: #ff6b6b;
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-description {
    color: var(--deep-teal);
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 35px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--deep-teal);
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-item i {
    color: var(--mid-teal);
    font-size: 1.1rem;
}

.selection-group {
    margin-bottom: 30px;
}

.selection-label {
    display: block;
    color: var(--deep-teal);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1rem;
}

.selection-label span {
    font-weight: 700;
}

.color-options {
    display: flex;
    gap: 12px;
}

.color-swatch {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.active {
    border-color: var(--deep-teal);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.size-btn {
    padding: 12px 20px;
    border: 2px solid rgba(2, 74, 88, 0.2);
    background: rgba(255, 255, 255, 0.2);
    color: var(--deep-teal);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.size-btn:hover {
    border-color: var(--mid-teal);
    background: rgba(255, 255, 255, 0.3);
}

.size-btn.active {
    border-color: var(--deep-teal);
    background: var(--deep-teal);
    color: white;
}

.size-guide-link {
    color: var(--deep-teal);
    text-decoration: underline;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.size-guide-link:hover {
    opacity: 1;
}

.quantity-selector {
    display: flex;
    align-items: center;
    width: fit-content;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: transparent;
    color: var(--deep-teal);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.qty-btn:hover {
    background: rgba(2, 74, 88, 0.1);
}

.quantity-selector input {
    width: 60px;
    height: 45px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 600;
    color: var(--deep-teal);
    font-size: 1.1rem;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 35px;
}

.btn-add-cart {
    flex: 1;
    padding: 18px 40px;
    background: var(--deep-teal);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-cart:hover {
    background: var(--mid-teal);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(2, 74, 88, 0.3);
}

.btn-wishlist {
    width: 60px;
    height: 60px;
    border: 2px solid var(--deep-teal);
    background: rgba(255, 255, 255, 0.2);
    color: var(--deep-teal);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.btn-wishlist:hover {
    background: var(--deep-teal);
    color: white;
    transform: scale(1.1);
}

.btn-wishlist.active i {
    font-weight: 900;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(223, 224, 226, 0.3);
}

.badge-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.badge-item i {
    font-size: 1.5rem;
    color: var(--mid-teal);
    flex-shrink: 0;
}

.badge-item strong {
    display: block;
    color: var(--deep-teal);
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.product-tabs {
    margin-top: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(223, 224, 226, 0.3);
}

/* ============================================= */
/*          MODAL-SPECIFIC STYLES                */
/* ============================================= */

.modal-content.product-page {
    max-width: 90vw;
    width: 1400px;
    height: 90vh;
    padding: 40px 50px;
    min-height: 0;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(30px);
}

.modal-content::--webkit-scrollbar {
    width: 0px !important;
}

.modal-content .product-layout {
    margin-bottom: 20px;
    display: flex;
}

.modal-content .product-gallery {
    position: sticky;
    left: 0px;
    top: 0px;
}

.modal-content .selection-group,
.modal-content .action-buttons {
    margin-bottom: 25px;
}

.modal-content .product-title {
    font-size: 2.8rem;
}

.modal-content .trust-badges {
    grid-template-columns: repeat(2, 1fr);
    background: rgba(2, 74, 88, 0.04);
    border: none;
    padding: 20px;
    gap: 25px;
}

.modal-content .product-tabs {
    display: none;
}

/* ============================================= */
/*              SIDEBARS & OVERLAYS              */
/* ============================================= */

.wishlist-overlay,
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 74, 88, 0.3);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wishlist-overlay { z-index: 3998; }
.cart-overlay { z-index: 3999; }

.wishlist-overlay.active,
.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wishlist-sidebar,
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.wishlist-sidebar { z-index: 3999; }
.cart-sidebar { z-index: 4000; }

.wishlist-sidebar.active,
.cart-sidebar.active {
    right: 0;
}

.wishlist-header,
.cart-header {
    padding: 30px;
    border-bottom: 2px solid rgba(2, 74, 88, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wishlist-header h3,
.cart-header h3 {
    font-family: var(--font-headline);
    color: var(--deep-teal);
    font-size: 1.5rem;
    margin: 0;
}

.wishlist-close,
.cart-close {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(2, 74, 88, 0.2);
    background: rgba(2, 74, 88, 0.1);
    color: var(--deep-teal);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.wishlist-close:hover,
.cart-close:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
    color: #ff6b6b;
    transform: rotate(90deg) scale(1.1);
}

.wishlist-items,
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.empty-wishlist,
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: var(--deep-teal);
    opacity: 0.6;
}

.empty-wishlist i,
.empty-cart i {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.empty-wishlist i { color: rgba(2, 74, 88, 0.3); }

.empty-wishlist p,
.empty-cart p {
    font-size: 1.1rem;
    margin: 0;
}

/* ============================================= */
/*           WISHLIST ITEM STYLES                */
/* ============================================= */

.wishlist-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(2, 74, 88, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.wishlist-item:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(2, 74, 88, 0.1);
}

.wishlist-item-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
}

.wishlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wishlist-item-image:hover img {
    transform: scale(1.05);
}

.wishlist-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wishlist-item-details h4 {
    color: var(--deep-teal);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.wishlist-item-details h4:hover {
    color: var(--mid-teal);
}

.wishlist-item-price {
    color: var(--deep-teal);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.wishlist-item-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-add-to-cart-from-wishlist {
    flex: 1;
    padding: 10px 15px;
    background: var(--deep-teal);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-to-cart-from-wishlist:hover {
    background: var(--mid-teal);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(2, 74, 88, 0.2);
}

.btn-remove-wishlist {
    padding: 10px 15px;
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-remove-wishlist:hover {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
    transform: translateY(-2px);
}

/* ============================================= */
/*             CART ITEM STYLES                  */
/* ============================================= */

.cart-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(2, 74, 88, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(2, 74, 88, 0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-details h4 {
    color: var(--deep-teal);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.cart-item-variants {
    color: var(--deep-teal);
    opacity: 0.7;
    font-size: 0.85rem;
    margin: 0;
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 5px;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--deep-teal);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-qty button:hover {
    background: var(--mid-teal);
    transform: scale(1.1);
}

.cart-item-qty span {
    min-width: 25px;
    text-align: center;
    color: var(--deep-teal);
    font-weight: 600;
}

.cart-item-price {
    color: var(--deep-teal);
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-item-remove {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 107, 107, 0.3);
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.cart-item-remove:hover {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
    transform: rotate(90deg) scale(1.1);
}

.cart-footer {
    padding: 30px;
    border-top: 2px solid rgba(2, 74, 88, 0.1);
    background: rgba(255, 255, 255, 0.3);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--deep-teal);
}

.btn-checkout {
    width: 100%;
    padding: 18px;
    background: var(--deep-teal);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-bottom: 15px;
}

.btn-checkout:hover {
    background: var(--mid-teal);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(2, 74, 88, 0.3);
}

.continue-shopping {
    display: block;
    text-align: center;
    color: var(--deep-teal);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.continue-shopping:hover {
    opacity: 1;
}

/* ============================================= */
/*          NOTIFICATIONS & ANIMATIONS           */
/* ============================================= */

.wishlist-notification,
.cart-success-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px 30px;
    box-shadow: 0 20px 60px rgba(2, 74, 88, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(2, 74, 88, 0.1);
}

.wishlist-notification.show,
.cart-success-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.wishlist-icon-added,
.wishlist-icon-removed,
.success-icon-animated {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    animation: checkmark 0.6s ease;
}

.wishlist-icon-added { background: linear-gradient(135deg, #ff6b6b, #ff8787); }
.wishlist-icon-removed { background: linear-gradient(135deg, #024A58, #4C8D94); }
.success-icon-animated { background: linear-gradient(135deg, #024A58, #4C8D94); }

.wishlist-message strong,
.success-message strong {
    display: block;
    color: var(--deep-teal);
    font-size: 1.1rem;
    font-weight: 700;
}

.success-message p {
    color: var(--deep-teal);
    opacity: 0.7;
    font-size: 0.9rem;
    margin: 0;
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ============================================= */
/*              CHECKOUT MODAL                   */
/* ============================================= */

.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 74, 88, 0.7);
    backdrop-filter: blur(10px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.checkout-modal.active {
    opacity: 1;
    visibility: visible;
}

.checkout-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    border-radius: 30px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 50px;
    position: relative;
    box-shadow: 0 30px 80px rgba(2, 74, 88, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.checkout-modal.active .checkout-content {
    transform: scale(1);
}

.checkout-content .modal-close {
    position: sticky;
    top: -30px;
    left: 100%;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: rgba(2, 74, 88, 0.1);
    color: var(--deep-teal);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .checkout-modal .modal-close {
        top: -10px;
    }
}

.checkout-content .modal-close:hover {
    background: rgba(2, 74, 88, 0.2);
    transform: rotate(90deg);
}

.checkout-content h2 {
    font-family: var(--font-headline);
    color: var(--deep-teal);
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
}

.checkout-form {
    background: rgba(255, 255, 255, 0.5);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(2, 74, 88, 0.1);
}

.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    color: var(--deep-teal);
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--deep-teal);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(2, 74, 88, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--deep-teal);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--deep-teal);
    background: white;
    box-shadow: 0 0 0 4px rgba(2, 74, 88, 0.1);
}

.btn-place-order {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, var(--deep-teal), var(--mid-teal));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(2, 74, 88, 0.3);
}

.btn-place-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(2, 74, 88, 0.4);
}

.order-summary {
    background: rgba(255, 255, 255, 0.5);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(2, 74, 88, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.order-summary h3 {
    color: var(--deep-teal);
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.summary-items {
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(2, 74, 88, 0.1);
}

.summary-item-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--deep-teal);
    font-size: 0.9rem;
}

.summary-item-price {
    color: var(--deep-teal);
    font-weight: 700;
}

.summary-divider {
    height: 1px;
    background: rgba(2, 74, 88, 0.2);
    margin: 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: var(--deep-teal);
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    border-top: 2px solid rgba(2, 74, 88, 0.2);
    padding-top: 20px;
    margin-top: 10px;
}

/* ============================================= */
/*             SUCCESS MODAL                     */
/* ============================================= */

.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 74, 88, 0.8);
    backdrop-filter: blur(10px);
    z-index: 6000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-modal.active {
    opacity: 1;
    visibility: visible;
}

.success-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    border-radius: 30px;
    padding: 60px 50px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 30px 80px rgba(2, 74, 88, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.success-modal.active .success-content {
    transform: scale(1);
}

.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #024A58, #4C8D94);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 3rem;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-content h2 {
    color: var(--deep-teal);
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.success-content p {
    color: var(--deep-teal);
    opacity: 0.8;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.order-number {
    background: rgba(2, 74, 88, 0.1);
    padding: 15px 25px;
    border-radius: 12px;
    color: var(--deep-teal);
    font-weight: 600;
    margin-bottom: 30px;
    display: inline-block;
}

.btn-continue {
    padding: 15px 40px;
    background: var(--deep-teal);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn-continue:hover {
    background: var(--mid-teal);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(2, 74, 88, 0.3);
}


/* ============================================= */
/*          RESPONSIVE STYLES (MEDIA QUERIES)    */
/* ============================================= */

/* Tablet & Smaller Desktop */
@media (max-width: 1024px) {
    .product-layout,
    .modal-content .product-layout {
        grid-template-columns: 1.1fr 1fr;
        gap: 10px;
        -ms-overflow-style: none;
    }

    .product-gallery {
        position: static;
        top: auto;
    }

    .trust-badges,
    .modal-content .trust-badges {
        grid-template-columns: 1fr;
    }
    
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
    }
}

/* Mobile & Small Tablet */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .product-page {
        padding-top: 100px;
        height: 95vh !important;
    }

    .product-layout {
        flex-direction: column;
        position: relative;
        top: 23px;
    }

    .product-gallery,
    .product-info {
        width: 100% !important;
    }

    .product-gallery {
        position: static !important;
    }

    .modal-content.product-page {
        max-width: 90vw;
        max-height: 95vh;
        padding: 20px 30px; /* Adjusted padding for mobile */
    }

    .product-title,
    .modal-content .product-title {
        font-size: 2rem;
    }

    .thumbnail-gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .product-features {
        grid-template-columns: 1fr;
    }
    
    .btn-wishlist {
        left: 0;
        margin: auto;
    }

    .wishlist-sidebar,
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .wishlist-overlay,
    .cart-overlay {
        display: block; /* Ensure overlays are usable */
    }
    
    .wishlist-notification,
    .cart-success-notification {
        right: 15px;
        left: 15px;
        top: 15px; /* Adjust vertical position */
        transform: translateY(-150px);
    }
    
    .wishlist-notification.show,
    .cart-success-notification.show {
        transform: translateY(0);
    }

    .checkout-content {
        padding: 30px 20px;
        max-height: 95vh;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
