/*=============================================
=         POTTERY CO - REFINED REPLICA        =
=============================================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #1a1a1a;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    letter-spacing: -0.01em;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* =============================================
   BOOTSTRAP MODAL CENTERING FIX
   ============================================= */

/* Ensure modals are centered on all devices when shown */
.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
    margin: 0.5rem auto;
}

/* Desktop modal sizing */
@media (min-width: 992px) {
    #authModal .modal-dialog {
        max-width: 540px;
        width: 540px;
    }

    #cartModal .modal-dialog {
        max-width: 500px;
    }
}

/* Tablet modal sizing */
@media (min-width: 577px) and (max-width: 991px) {
    #authModal .modal-dialog {
        max-width: 520px;
        width: 520px;
    }

    #cartModal .modal-dialog {
        max-width: 480px;
    }
}

/* Mobile modal centering */
@media (max-width: 576px) {
    .modal-dialog-centered {
        min-height: calc(100% - 0.5rem);
        margin: 0.25rem auto;
    }

    .modal-dialog:not(.modal-xl):not(.modal-lg) {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    #cartModal .modal-dialog,
    #authModal .modal-dialog {
        max-width: calc(100% - 1rem);
        width: calc(100% - 1rem);
        margin: 0.5rem auto;
    }
}

/* =============================================
   SWEETALERT2 GLOBAL CENTERING
   ============================================= */

.swal2-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.swal2-popup {
    margin: 0 !important;
}

/* Mobile SweetAlert2 */
@media (max-width: 768px) {
    .swal2-popup {
        width: calc(100% - 2rem) !important;
        max-width: calc(100% - 2rem) !important;
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

a:hover {
    opacity: 0.6;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.header-wrapper {
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

.header-main {
    padding: 24px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    flex: 0 0 auto;
}

.brand-link {
    display: inline-block;
    text-decoration: none;
}

.brand-logo-img {
    height: 60px;
    width: auto;
    display: block;
}

/* Header Actions (User + Cart) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-link,
.cart-link {
    position: relative;
    font-size: 22px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1.5px solid #e8e8e8;
    border-radius: 24px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-link {
    min-width: auto;
}

.cart-link {
    min-width: 70px;
    justify-content: center;
}

.user-link:hover,
.cart-link:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.user-link span,
#cart-count {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
}

.user-link span {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

#cart-count {
    margin-left: 0;
}

/* Category Filter Bar */
.category-filter-wrapper {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 20px 0;
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.category-filter-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding-bottom: 4px;
}

.category-filter-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.category-item {
    flex-shrink: 0;
    background: transparent;
    border: 1px solid #e8e8e8;
    color: #1a1a1a;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-item:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.category-item.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* Product Grid */
.store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px 32px;
    padding: 56px 0 80px;
}

.product-item {
    display: block;
    text-decoration: none;
}

.product-image {
    position: relative;
    margin-bottom: 12px;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3/4;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='80' height='80' rx='16' fill='%23d0d0d0'/%3E%3Cpath d='M40 16L48 40L40 64L32 40L40 16Z' fill='white'/%3E%3Cpath d='M16 40L40 32L64 40L40 48L16 40Z' fill='white'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.4;
    pointer-events: none;
}

.product-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: opacity 0.3s ease;
    display: block;
    position: relative;
    z-index: 1;
}

.product-image img[src*="default"],
.product-image img[src=""],
.product-image img:not([src]) {
    opacity: 0;
}

.product-item:hover .product-image img {
    opacity: 0.9;
}

.product-info {
    text-align: left;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-name {
    font-size: 11px;
    font-weight: 400;
    margin: 0;
    color: #000000;
    line-height: 1.4;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 13px;
    font-weight: 400;
    color: #000000;
    letter-spacing: 0;
}

/* Footer */
footer {
    border-top: 1px solid #e8e8e8;
    padding: 48px 0 32px;
    margin-top: 40px;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    font-size: 13px;
    color: #9e9e9e;
    font-weight: 400;
}

/* Product Detail Page */
.product-page {
    padding: 48px 0 80px;
}

.breadcrumb {
    list-style: none;
    display: flex;
    font-size: 13px;
    color: #9e9e9e;
    margin-bottom: 32px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    padding: 0 10px;
    color: #d0d0d0;
}

.breadcrumb-item a {
    color: #9e9e9e;
}

.breadcrumb-item a:hover {
    color: #1a1a1a;
}

.breadcrumb-item.active {
    color: #1a1a1a;
}

.product-gallery {
    margin-bottom: 32px;
}

.main-image {
    margin-bottom: 16px;
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.product-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
}

.thumbnail {
    width: 72px;
    height: 72px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    flex-shrink: 0;
    border-radius: 8px;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
}

.product-page .product-info {
    padding-left: 48px;
}

.product-page .product-category a {
    font-size: 13px;
    color: #9e9e9e;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.product-page .product-title {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.3px;
    margin: 16px 0 24px;
    color: #1a1a1a;
    line-height: 1.2;
}

.product-page .product-rating {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-page .product-rating .stars i {
    font-size: 14px;
    color: #1a1a1a;
}

.product-page .rating-text {
    font-size: 13px;
    color: #757575;
}

.product-page .product-price {
    font-size: 22px;
    margin-bottom: 28px;
    color: #1a1a1a;
}

.product-page .sale-price {
    color: #1a1a1a;
}

.product-page .original-price {
    font-size: 18px;
    color: #9e9e9e;
    text-decoration: line-through;
    margin-left: 12px;
}

.product-page .stock-status {
    font-size: 13px;
    color: #757575;
    margin-bottom: 24px;
}

.product-page .in-stock {
    color: #4caf50;
}

.product-page .out-of-stock {
    color: #f44336;
}

.product-page .short-description {
    font-size: 15px;
    color: #757575;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Variants */
.variant-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
    color: #1a1a1a;
    font-weight: 500;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.variant-options input[type="radio"] {
    display: none;
}

.variant-btn {
    border: 1px solid #d0d0d0;
    padding: 10px 20px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    color: #1a1a1a;
}

.variant-btn:hover {
    border-color: #1a1a1a;
}

.variant-options input[type="radio"]:checked + .variant-btn {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* Quantity */
.quantity-selector {
    margin-bottom: 24px;
}

.quantity-input {
    display: inline-flex;
    width: auto;
}

.quantity-input .form-control {
    border: 1px solid #d0d0d0;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 15px;
    padding: 10px;
    width: 60px;
    background: #fff;
}

.quantity-input .btn-outline-secondary {
    border: 1px solid #d0d0d0;
    background: #fff;
    color: #1a1a1a;
    padding: 10px 16px;
    font-size: 16px;
    transition: all 0.2s;
}

.quantity-input .btn-outline-secondary:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* Buttons */
.btn-primary,
.add-to-cart {
    background: #c17a4a;
    color: #fff;
    border: 1px solid #c17a4a;
    padding: 16px 32px;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 24px;
}

.btn-primary:hover,
.add-to-cart:hover {
    background: #a5653c;
    border-color: #a5653c;
    color: #fff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* Product Tabs */
.product-tabs {
    margin-top: 64px;
    border-top: 1px solid #e8e8e8;
    padding-top: 48px;
}

.product-tabs .nav-tabs {
    border: none;
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
    list-style: none;
}

.product-tabs .nav-link {
    border: none;
    background: none;
    color: #9e9e9e;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 0 10px;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    cursor: pointer;
}

.product-tabs .nav-link:hover,
.product-tabs .nav-link.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
    opacity: 1;
}

.product-tabs .tab-content {
    border: none;
    padding: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #757575;
}

/* Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.review-item {
    padding-bottom: 32px;
    border-bottom: 1px solid #e8e8e8;
}

.review-item:last-child {
    border: none;
    padding-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.reviewer-info strong {
    color: #1a1a1a;
    font-weight: 500;
}

.verified-badge {
    font-size: 12px;
    color: #4caf50;
}

.review-rating i {
    font-size: 13px;
    color: #1a1a1a;
}

.review-body {
    font-size: 15px;
    line-height: 1.6;
    margin: 10px 0;
    color: #1a1a1a;
}

.review-footer {
    font-size: 13px;
    color: #9e9e9e;
}

/* Related Products */
.related-products {
    margin-top: 96px;
    padding-top: 64px;
    border-top: 1px solid #e8e8e8;
}

.related-products .section-title {
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px 32px;
}

/* Responsive */
@media (max-width: 1200px) {
    .store-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 48px 28px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 24px;
    }
}

@media (max-width: 900px) {
    .store-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 20px;
    }

    .product-info {
        padding-left: 0;
        margin-top: 32px;
    }

    .container {
        padding: 0 20px;
    }

    .header-main {
        padding: 32px 0 24px;
    }

    .header-content {
        margin-bottom: 24px;
    }

    .store-name {
        font-size: 36px;
    }

    .store-tagline {
        font-size: 14px;
    }

    .brand-logo svg {
        width: 56px;
        height: 56px;
    }

    .header-info {
        gap: 12px;
    }

    .social-links {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .store-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 16px;
    }

    .header-main {
        padding: 24px 0 20px;
    }

    .header-content {
        margin-bottom: 20px;
    }

    /* Cart Modal Mobile */
    #cartModal .modal-dialog {
        max-width: calc(100vw - 2rem) !important;
        width: calc(100vw - 2rem) !important;
    }

    #cartModal .modal-header,
    #cartModal .modal-footer {
        padding: 24px;
    }

    .cart-item {
        padding: 20px 24px;
        flex-wrap: wrap;
    }

    .cart-item-image-wrapper {
        width: 60px;
        height: 60px;
    }

    .cart-item-details {
        flex: 1;
        min-width: calc(100% - 76px);
    }

    .cart-item-actions {
        width: 100%;
        margin-top: 12px;
        justify-content: space-between;
    }

    .cart-item-price-mobile {
        display: block;
        margin-top: 4px;
    }

    .cart-item-total {
        display: none;
    }

    .brand-link {
        gap: 12px;
    }

    .brand-logo svg {
        width: 48px;
        height: 48px;
    }

    .store-name {
        font-size: 28px;
    }

    .store-tagline {
        font-size: 13px;
    }

    .cart-link {
        font-size: 20px;
        min-width: 56px;
        padding: 8px 12px;
    }

    .info-btn {
        font-size: 13px;
        padding: 8px 16px;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .product-name {
        font-size: 12px;
    }

    .product-price {
        font-size: 12px;
    }

    .product-title {
        font-size: 24px;
    }

    .container {
        padding: 0 16px;
    }

    .store-grid {
        padding: 40px 0 60px;
        gap: 28px 12px;
    }

    .product-image {
        border-radius: 0;
        margin-bottom: 10px;
    }

    .product-info {
        padding: 0;
        gap: 3px;
    }
}

@media (max-width: 400px) {
    .store-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Cart Modal */
#cartModal .modal-content {
    border-radius: 0 !important;
    border: 1px solid #e8e8e8;
}

#cartModal .modal-header {
    border-bottom: 1px solid #e8e8e8;
    padding: 24px 28px;
}

#cartModal .modal-title {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#cartModal .modal-body {
    padding: 0;
    max-height: 450px;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: #9e9e9e;
    padding: 60px 20px;
    font-size: 14px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 20px 28px;
    border-bottom: 1px solid #e8e8e8;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image-wrapper {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: #fafafa;
    overflow: hidden;
}

.cart-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.cart-item-variant {
    font-size: 12px;
    color: #757575;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cart-item-price-mobile {
    display: none;
    font-size: 12px;
    color: #757575;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #e8e8e8;
    background: #fff;
    color: #1a1a1a;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 0;
}

.cart-quantity-btn:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.cart-quantity-value {
    font-size: 13px;
    color: #1a1a1a;
    min-width: 20px;
    text-align: center;
}

.cart-item-total {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    min-width: 70px;
    text-align: right;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: #9e9e9e;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: #1a1a1a;
}

#cartModal .modal-footer {
    border-top: 1px solid #e8e8e8;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #757575;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-total strong {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
}

.btn-continue {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-continue:hover {
    background: #333;
    color: #fff;
    opacity: 1;
}

/* Checkout Page */
.checkout-page {
    padding: 48px 0 80px;
}

.checkout-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: none;
}

.back-link:hover {
    opacity: 0.6;
}

.checkout-title {
    font-size: 24px;
    font-weight: 400;
    margin: 0;
    margin-left: 16px;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
}

.checkout-form {
    max-width: 600px;
}

.form-section {
    margin-bottom: 40px;
}

.form-section-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.form-control,
.form-select,
textarea.form-control {
    width: 100%;
    border: 1px solid #d0d0d0;
    padding: 12px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.2s;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: #1a1a1a;
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Saved Addresses Selector in Checkout */
#savedAddressesSection {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

#savedAddressesSection .form-label {
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#savedAddressesSection .form-label::before {
    content: "📍";
    font-size: 16px;
}

#savedAddressSelect {
    background: white;
    border: 1px solid #d0d0d0;
    padding: 12px;
    font-size: 14px;
    cursor: pointer;
}

#savedAddressSelect option[value="new"] {
    color: #1a1a1a;
    font-weight: 500;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.payment-method {
    display: flex;
    align-items: center;
    border: 1px solid #d0d0d0;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method:hover {
    border-color: #1a1a1a;
}

.payment-method input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
}

.payment-method-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.payment-method-content i {
    font-size: 20px;
}

.payment-note {
    font-size: 13px;
    color: #757575;
    line-height: 1.6;
}

.btn-place-order {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 24px;
}

.btn-place-order:hover {
    background: #333;
}

/* Order Summary Sidebar */
.order-summary {
    position: sticky;
    top: 24px;
    background: #fafafa;
    padding: 24px;
}

.summary-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.summary-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
}

.summary-item:first-child {
    padding-top: 0;
}

.summary-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    background: #fafafa;
    flex-shrink: 0;
}

.summary-item-details {
    flex: 1;
}

.summary-item-name {
    font-size: 14px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.summary-item-quantity {
    font-size: 13px;
    color: #757575;
}

.summary-item-price {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    text-align: right;
}

.summary-totals {
    padding-top: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #1a1a1a;
}

.summary-row.subtotal {
    color: #757575;
}

.summary-row.shipping {
    color: #757575;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 500;
    padding-top: 16px;
    border-top: 2px solid #1a1a1a;
    margin-top: 16px;
    color: #1a1a1a;
}

/* Bootstrap Override */
.card,
.btn,
.form-control,
.form-select {
    border-radius: 0 !important;
    width: 100%;
    box-sizing: border-box;
}

.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: none !important;
    outline: none;
}

/* Remove default link underlines */
.nav-link {
    text-decoration: none;
}

/* Tab pane */
.tab-pane {
    display: none;
}

.tab-pane.show.active {
    display: block;
}

/* Responsive Checkout */
@media (max-width: 900px) {
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 32px;
        display: flex;
        flex-direction: column;
    }

    .order-summary {
        position: static;
        order: -1; /* Move summary to the top */
        padding: 20px;
    }

    .checkout-form {
        order: 1;
    }
}

@media (max-width: 600px) {
    .checkout-page {
        padding: 24px 0 60px;
    }

    .checkout-header {
        margin-bottom: 24px;
    }

    .checkout-container {
        gap: 24px;
    }

    .order-summary {
        padding: 20px;
        margin: 0 -16px;
        background: #f8f9fa;
    }

    .summary-title {
        font-size: 16px;
        margin-bottom: 16px;
        font-weight: 600;
    }

    .summary-item {
        gap: 12px;
        padding: 12px 0;
    }

    .summary-item-image {
        width: 60px;
        height: 60px;
    }

    .summary-item-name {
        font-size: 13px;
        line-height: 1.3;
    }

    .summary-item-quantity {
        font-size: 12px;
    }

    .summary-item-price {
        font-size: 14px;
    }

    .summary-totals {
        padding-top: 16px;
        margin-top: 16px;
        border-top: 1px solid #e0e0e0;
    }

    .summary-row {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .summary-row.total {
        font-size: 16px;
        padding-top: 12px;
        margin-top: 12px;
    }

    .form-section {
        padding: 0;
    }

    .form-section-title {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .form-row {
        gap: 12px;
    }

    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn-place-order {
        width: 100%;
        padding: 16px;
        font-size: 15px;
    }
}

/* ===== PRODUCT MODAL - CLEAN IMPLEMENTATION ===== */

/* Modal Container */
#productModal .modal-dialog {
    max-width: 90vw;
    width: 90%;
    max-height: 90vh;
    margin: 5vh auto;
    display: flex;
    align-items: center;
}

#productModal .modal-content {
    border: none;
    border-radius: 0 !important;
    height: 90vh;
    max-height: 90vh;
}

#productModal .modal-body {
    height: 100%;
    padding: 0 !important;
}

#productModal .modal-body .row {
    height: 100%;
    margin: 0;
}

#productModal .col-lg-7,
#productModal .col-lg-5 {
    height: 100%;
}

/* Close Button */
.product-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border: 1px solid #e8e8e8;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.product-modal-close:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.product-modal-close:hover i {
    color: #fff;
}

.product-modal-close i {
    font-size: 24px;
    color: #1a1a1a;
}

/* Image Gallery Section */
.product-modal-images {
    background: #fafafa;
    padding: 40px;
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

.product-gallery {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.product-gallery a {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    max-height: 100%;
}

.product-gallery img {
    max-width: 100%;
    max-height: calc(90vh - 180px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-modal-thumbs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    flex-shrink: 0;
    min-height: 80px;
}

.product-modal-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s;
    background: #fff;
    border: 2px solid transparent;
}

.product-modal-thumbs img:hover {
    opacity: 0.7;
}

.product-modal-thumbs img.active {
    opacity: 1;
    border-color: #1a1a1a;
}

/* Product Details Section */
.product-modal-details {
    background: #fff;
    height: 100% !important;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-modal-content {
    padding: 40px 36px 20px;
    overflow-y: auto;
    flex: 1;
}

.product-modal-content::-webkit-scrollbar {
    width: 6px;
}

.product-modal-content::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.product-modal-content::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}

/* Badges */
.product-modal-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.product-modal-badges span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 2px;
}

.badge-new {
    background: #1a1a1a;
    color: #fff;
}

.badge-sale {
    background: #1a1a1a;
    color: #fff;
}

.badge-featured {
    background: #1a1a1a;
    color: #fff;
}

/* Title */
.product-modal-content h2 {
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    line-height: 1.2;
}

/* Category */
.product-modal-category {
    margin-bottom: 12px;
}

.category-label {
    font-size: 12px;
    color: #757575;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Rating */
.product-modal-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.rating-stars {
    color: #ffc107;
    font-size: 14px;
}

.rating-stars i {
    margin-right: 2px;
}

.rating-text {
    font-size: 13px;
    color: #757575;
}

/* SKU */
.product-modal-sku {
    font-size: 13px;
    color: #757575;
    margin-bottom: 16px;
}

/* Price */
.product-modal-price-wrapper {
    margin-bottom: 20px;
}

.product-modal-price {
    font-size: 28px;
    color: #1a1a1a;
    font-weight: 600;
    display: inline-block;
}

.product-modal-compare-price {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.compare-price {
    font-size: 16px;
    color: #9e9e9e;
    text-decoration: line-through;
}

.discount-badge {
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

/* Descriptions */
.product-modal-description {
    font-size: 14px;
    color: #616161;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Long Description (Collapsible) */
#modalLongDescriptionSection {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
}

.product-modal-toggle-description {
    width: 100%;
    background: transparent;
    border: none;
    padding: 12px 0;
    font-size: 14px;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    transition: color 0.2s;
}

.product-modal-toggle-description:hover {
    color: #666;
}

.product-modal-toggle-description i {
    transition: transform 0.3s;
}

.product-modal-long-description {
    font-size: 14px;
    color: #757575;
    line-height: 1.8;
    margin-top: 16px;
}

/* Care Instructions (Collapsible) */
#modalCareInstructionsSection {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
}

.product-modal-care-instructions {
    font-size: 14px;
    color: #757575;
    line-height: 1.8;
    margin-top: 16px;
}

/* Material/Composition (Collapsible) */
#modalMaterialSection {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
}

.product-modal-material {
    font-size: 14px;
    color: #757575;
    line-height: 1.8;
    margin-top: 16px;
}

/* Product Details List */
.product-modal-details-list {
    margin-bottom: 24px;
    padding: 16px;
    background: #fafafa;
    border-radius: 4px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: #757575;
    font-weight: 500;
}

.detail-value {
    color: #1a1a1a;
}

/* Options (Color/Size) */
.product-modal-content label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: #1a1a1a;
    font-weight: 500;
}

#modalColorSection,
#modalSizeSection {
    margin-bottom: 20px;
}

#modalColorSection:first-of-type {
    margin-top: 4px;
}

.product-modal-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-modal-options > div {
    border: 1px solid #d0d0d0;
    padding: 10px 20px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    color: #1a1a1a;
    position: relative;
}

.product-modal-options > div:hover {
    border-color: #1a1a1a;
}

.product-modal-options > div.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* Color options with hex codes */
.color-option .color-name {
    position: relative;
    z-index: 1;
    mix-blend-mode: difference;
    color: #fff;
}

.color-option.active .color-name {
    font-weight: 600;
}

/* Quantity */
.product-modal-quantity {
    margin-bottom: 20px;
}

.quantity-controls {
    display: inline-flex;
    border: 1px solid #d0d0d0;
    margin-top: 12px;
}

.quantity-controls button {
    background: #fff;
    border: none;
    padding: 10px 16px;
    font-size: 16px;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 40px;
}

.quantity-controls button:hover {
    background: #f5f5f5;
}

.quantity-controls input {
    border: none;
    border-left: 1px solid #d0d0d0;
    border-right: 1px solid #d0d0d0;
    text-align: center;
    font-size: 15px;
    padding: 10px;
    width: 60px;
    background: #fff;
}

/* Stock */
.product-modal-stock {
    font-size: 13px;
    color: #757575;
    margin-bottom: 24px;
}

.product-modal-stock .in-stock {
    color: #4caf50;
}

.product-modal-stock .out-of-stock {
    color: #f44336;
}

/* Sticky Footer with Add Button */
.product-modal-sticky-footer {
    background: #fff;
    padding: 20px 36px;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.product-modal-add-btn {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.product-modal-add-btn:hover {
    background: #333;
}

.product-modal-add-btn:disabled {
    background: #d0d0d0;
    cursor: not-allowed;
}

.modal-product-name {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.3px;
    margin: 0 0 16px 0;
    color: #1a1a1a;
    line-height: 1.2;
}

/* ===== RESPONSIVE PRODUCT MODAL ===== */

/* Tablet */
@media (max-width: 991px) {
    .product-modal-images {
        padding: 32px;
    }

    .product-modal-content {
        padding: 32px 28px;
    }

    .product-modal-main-image {
        min-height: 400px;
    }

    .product-modal-main-image img {
        max-height: 500px;
    }

    .product-modal-thumbs img {
        width: 70px;
        height: 70px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    #productModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        display: flex;
        align-items: flex-start;
    }

    #productModal .modal-content {
        height: 100vh;
        max-height: 100vh;
        border-radius: 0 !important;
        overflow-y: auto;
        width: 100%;
    }

    #productModal .modal-body {
        overflow-y: auto;
        height: auto;
        -webkit-overflow-scrolling: touch;
    }

    .product-modal-close {
        position: fixed;
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.95);
        border: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        z-index: 1000;
    }

    .product-modal-close i {
        font-size: 22px;
    }

    /* Stack layout on mobile */
    #productModal .modal-body .row {
        flex-direction: column;
        height: auto;
    }

    #productModal .col-lg-7,
    #productModal .col-lg-5 {
        height: auto;
    }

    .product-modal-images {
        padding: 20px 16px;
        height: auto;
        min-height: auto;
    }

    .product-gallery {
        min-height: 280px;
        margin-bottom: 16px;
        flex: none;
    }

    .product-gallery img {
        max-height: 350px;
    }

    .product-modal-thumbs {
        gap: 8px;
        padding-bottom: 16px;
        min-height: auto;
    }

    .product-modal-thumbs img {
        width: 60px;
        height: 60px;
    }

    .product-modal-details {
        height: auto;
        border-top: 1px solid #e8e8e8;
        display: flex;
        flex-direction: column;
    }

    .product-modal-content {
        padding: 24px 20px 20px;
        flex: 1;
        overflow-y: visible;
    }

    .product-modal-sticky-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 16px 20px;
        background: #fff;
        border-top: 1px solid #e8e8e8;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .product-modal-content {
        padding: 24px 20px 100px;
        flex: 1;
        overflow-y: visible;
    }

    .product-modal-content h2 {
        font-size: 22px;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .product-modal-price {
        font-size: 24px;
        margin-bottom: 16px;
        font-weight: 600;
    }

    .product-modal-description {
        font-size: 14px;
        margin-bottom: 24px;
        line-height: 1.6;
    }

    #modalColorSection,
    #modalSizeSection {
        margin-bottom: 20px;
    }

    #modalColorSection label,
    #modalSizeSection label {
        font-size: 12px;
        margin-bottom: 10px;
        display: block;
    }

    .product-modal-options {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .product-modal-options > div {
        padding: 10px 18px;
        font-size: 14px;
    }

    .product-modal-quantity {
        margin-bottom: 20px;
    }

    .product-modal-quantity label {
        font-size: 12px;
        margin-bottom: 10px;
        display: block;
    }

    .quantity-controls {
        display: inline-flex;
    }

    .quantity-controls button {
        padding: 10px 16px;
        font-size: 18px;
    }

    .quantity-controls input {
        width: 60px;
        padding: 10px;
        font-size: 16px;
    }

    .product-modal-stock {
        margin-bottom: 24px;
        font-size: 14px;
    }

    .product-modal-add-btn {
        padding: 16px 32px;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: 0.5px;
        width: 100%;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
}

/* ===== ELEGANT TOAST NOTIFICATIONS ===== */
.elegant-toast {
    border: 1px solid #e8e8e8 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    padding: 16px 20px !important;
}

.elegant-toast .swal2-icon {
    border-color: #1a1a1a !important;
    color: #1a1a1a !important;
}

.elegant-toast .swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #1a1a1a !important;
}

.elegant-toast .swal2-icon.swal2-success .swal2-success-ring {
    border-color: #1a1a1a !important;
}

.elegant-toast-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin-top: 0 !important;
}

.elegant-toast-text {
    font-size: 13px !important;
    color: #616161 !important;
    margin-top: 4px !important;
}

/* =============================================
   AUTH MODAL (Login/Register)
   ============================================= */

#authModal .modal-content {
    border-radius: 0;
    border: 1px solid #e8e8e8;
}

#authModal .modal-header {
    border-bottom: 1px solid #e8e8e8;
    padding: 24px 28px;
}

#authModal .modal-title {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#authModal .modal-body {
    padding: 32px 28px;
}

/* =============================================
   AUTH MODAL STYLES - Professional Design
   ============================================= */

#authModal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

#authModal .modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 32px 40px 24px;
}

#authModal .modal-title {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

#authModal .modal-body {
    padding: 36px 40px 40px;
}

.auth-form-group {
    margin-bottom: 26px;
}

.auth-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.auth-input {
    width: 100%;
    padding: 15px 18px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    color: #1a1a1a;
    background: #fff;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.auth-input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.05);
}

.auth-input::placeholder {
    color: #999;
}

.auth-help-text {
    display: block;
    font-size: 13px;
    color: #757575;
    margin-top: 8px;
}

.forgot-password-link {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 20px;
}

.forgot-password-link a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password-link a:hover {
    color: #1a1a1a;
}

.auth-btn {
    width: 100%;
    padding: 17px 24px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
    font-family: 'Inter', sans-serif;
}

.auth-btn-primary {
    background: #1a1a1a;
    color: #fff;
}

.auth-btn-primary:hover {
    background: #2d2d2d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.2);
}

.auth-btn-primary:active {
    transform: translateY(0);
}

.auth-switch {
    text-align: center;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #f0f0f0;
}

.auth-switch p {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.auth-switch a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1.5px solid #1a1a1a;
    transition: opacity 0.2s;
}

.auth-switch a:hover {
    opacity: 0.7;
}

/* Responsive Auth Modal */
@media (max-width: 600px) {
    #authModal .modal-dialog {
        max-width: calc(100vw - 2rem) !important;
        width: calc(100vw - 2rem) !important;
        margin: 1rem;
    }

    #authModal .modal-content {
        border-radius: 10px;
    }

    #authModal .modal-header {
        padding: 24px 24px 18px;
    }

    #authModal .modal-title {
        font-size: 21px;
    }

    #authModal .modal-body {
        padding: 24px;
    }

    .auth-form-group {
        margin-bottom: 20px;
    }

    .auth-form-group label {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .auth-input {
        padding: 13px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }

    .auth-btn {
        padding: 15px 24px;
        font-size: 15px;
        border-radius: 8px;
    }

    .auth-switch {
        margin-top: 24px;
        padding-top: 24px;
    }

    .auth-switch p {
        font-size: 14px;
    }
}

/* =============================================
   ACCOUNT PAGE
   ============================================= */

.account-page {
    padding: 60px 0 100px;
    min-height: 70vh;
    width: 100%;
    overflow-x: hidden;
}

.account-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.account-title {
    font-size: 32px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
}

.btn-logout {
    background: transparent;
    border: 1px solid #e8e8e8;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-logout:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.account-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    width: 100%;
    max-width: 100%;
}

/* Sidebar */
.account-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    max-width: 100%;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-nav-item {
    padding: 12px 16px;
    color: #757575;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.account-nav-item i {
    font-size: 18px;
}

.account-nav-item:hover {
    color: #1a1a1a;
    background: #f5f5f5;
}

.account-nav-item.active {
    color: #1a1a1a;
    border-left-color: #1a1a1a;
    background: #fafafa;
}

.account-stats {
    padding: 24px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 12px;
    color: #757575;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
}

/* Main Content */
.account-content {
    background: #fff;
    border: 1px solid #e8e8e8;
    padding: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.section-title {
    font-size: 20px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 32px 0;
}

.account-form {
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-input {
    padding: 12px 16px;
    border: 1px solid #e8e8e8;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.form-input:disabled {
    background: #f5f5f5;
    color: #9e9e9e;
    cursor: not-allowed;
}

.form-help {
    font-size: 12px;
    color: #757575;
    margin-top: 4px;
}

.btn-save {
    margin-top: 24px;
    padding: 14px 32px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-save:hover {
    background: #333;
}

/* Addresses Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.btn-add-address {
    padding: 10px 20px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-add-address:hover {
    background: #333;
}

.addresses-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 100%;
}

.address-card {
    border: 1px solid #e8e8e8;
    padding: 20px;
    background: #fff;
    transition: all 0.2s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.address-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.address-card.default {
    border-color: #1a1a1a;
    background: #fafafa;
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

.address-name {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-default {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: #1a1a1a;
    padding: 3px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: transparent;
    border: 1px solid #e8e8e8;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: #757575;
}

.btn-icon:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.address-details {
    margin-bottom: 16px;
}

.address-details p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #1a1a1a;
    line-height: 1.6;
}

.address-details .delivery-notes {
    color: #757575;
    font-style: italic;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f5f5f5;
}

.btn-set-default {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid #e8e8e8;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-set-default:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* Address Modal Styles */
.address-modal-form {
    text-align: left;
}

.address-modal-form .form-group {
    margin-bottom: 16px;
}

/* ========================================
   ORDER CONFIRMATION PAGE
   ======================================== */

.order-confirmation-page {
    min-height: 70vh;
    padding: 48px 0;
    background: #fafafa;
}

.confirmation-header {
    text-align: center;
    margin-bottom: 48px;
}

.success-icon {
    font-size: 72px;
    color: #10b981;
    margin-bottom: 24px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.confirmation-subtitle {
    font-size: 16px;
    color: #757575;
    margin: 0;
}

.confirmation-container {
    max-width: 900px;
    margin: 0 auto;
}

.confirmation-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    margin-bottom: 24px;
    overflow: hidden;
}

.confirmation-card .card-header {
    padding: 20px 24px;
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
}

.confirmation-card .card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.confirmation-card .card-body {
    padding: 24px;
}

/* Order Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-label {
    font-size: 13px;
    color: #757575;
    font-weight: 500;
}

.info-value {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
}

.order-number {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #1a1a1a;
    background: #f5f5f5;
    padding: 4px 8px;
    display: inline-block;
}

.badge-pending {
    background: #fbbf24;
    color: #78350f;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.badge-processing {
    background: #60a5fa;
    color: #1e3a8a;
}

.badge-shipped {
    background: #a78bfa;
    color: #4c1d95;
}

.badge-delivered {
    background: #34d399;
    color: #065f46;
}

.badge-cancelled {
    background: #f87171;
    color: #7f1d1d;
}

/* Order Items */
.order-items {
    margin-bottom: 24px;
}

.order-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e8e8e8;
}

.order-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 80px;
    height: 80px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    font-size: 32px;
    color: #d1d5db;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-name {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
}

.item-sku {
    font-size: 12px;
    color: #757575;
    margin: 0;
}

.item-quantity {
    font-size: 13px;
    color: #757575;
    margin-top: 8px;
}

.item-pricing {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-price {
    font-size: 14px;
    color: #757575;
}

.item-subtotal {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 2px solid #e8e8e8;
}

.total-label {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.total-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Shipping & Payment Grid */
.confirmation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.shipping-card .card-body,
.payment-card .card-body {
    font-size: 14px;
    line-height: 1.8;
}

.customer-name {
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.address-line,
.city-province,
.postal-code {
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.contact-phone {
    color: #757575;
    margin: 12px 0 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.delivery-notes {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
}

.delivery-notes strong {
    display: block;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.delivery-notes p {
    color: #757575;
    font-size: 13px;
    margin: 0;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.payment-icon {
    font-size: 32px;
    color: #1a1a1a;
}

.payment-label {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.payment-instructions {
    padding: 16px;
    background: #fef3c7;
    border-left: 3px solid #fbbf24;
    font-size: 13px;
}

.payment-instructions p {
    margin: 0 0 8px 0;
}

.payment-instructions p:last-child {
    margin: 0;
}

/* Next Steps */
.steps-list {
    margin: 0;
    padding-left: 24px;
}

.steps-list li {
    margin-bottom: 12px;
    color: #1a1a1a;
    line-height: 1.6;
}

.steps-list li:last-child {
    margin-bottom: 0;
}

/* Action Buttons */
.confirmation-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.confirmation-actions .btn {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.confirmation-actions .btn-primary {
    background: #1a1a1a;
    color: #fff;
    border: 2px solid #1a1a1a;
}

.confirmation-actions .btn-primary:hover {
    background: #000;
    border-color: #000;
}

.confirmation-actions .btn-secondary {
    background: transparent;
    color: #1a1a1a;
    border: 2px solid #e8e8e8;
}

.confirmation-actions .btn-secondary:hover {
    border-color: #1a1a1a;
}

/* Responsive Design */
@media (max-width: 767px) {
    .order-confirmation-page {
        padding: 32px 0;
    }

    .confirmation-header {
        margin-bottom: 32px;
    }

    .success-icon {
        font-size: 56px;
    }

    .confirmation-title {
        font-size: 24px;
    }

    .confirmation-subtitle {
        font-size: 14px;
    }

    .confirmation-card .card-header,
    .confirmation-card .card-body {
        padding: 16px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .order-item {
        grid-template-columns: 60px 1fr;
        gap: 12px;
    }

    .item-image {
        width: 60px;
        height: 60px;
    }

    .item-pricing {
        grid-column: 2;
        text-align: left;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 8px;
    }

    .confirmation-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .confirmation-actions {
        flex-direction: column;
        gap: 12px;
    }

    .confirmation-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.address-modal-form label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.address-modal-form .swal2-input,
.address-modal-form .swal2-textarea {
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #e8e8e8;
}

.address-modal-form .swal2-input:focus,
.address-modal-form .swal2-textarea:focus {
    border-color: #1a1a1a;
}

.form-row-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px !important;
    text-transform: none !important;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

/* Orders */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9e9e9e;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.empty-state p {
    font-size: 15px;
    margin-bottom: 24px;
}

.btn-shop {
    display: inline-block;
    padding: 12px 28px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn-shop:hover {
    background: #333;
    color: #fff;
    opacity: 1;
}

/* Orders List Section */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.orders-list .order-item {
    border: 1px solid #e8e8e8;
    padding: 24px;
    background: #fff;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 24px;
    align-items: center;
}

.orders-list .order-item:hover {
    border-color: #1a1a1a;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.order-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.order-number {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.3px;
}

.order-status {
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-block;
    border: 1px solid transparent;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
    border-color: #fbbf24;
}

.status-confirmed {
    background: #dbeafe;
    color: #1e40af;
    border-color: #60a5fa;
}

.status-processing {
    background: #ede9fe;
    color: #5b21b6;
    border-color: #a78bfa;
}

.status-shipped {
    background: #d1fae5;
    color: #065f46;
    border-color: #34d399;
}

.status-delivered {
    background: #d1fae5;
    color: #064e3b;
    border-color: #10b981;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
    border-color: #f87171;
}

.order-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    color: #757575;
}

.order-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.order-date i {
    font-size: 14px;
}

.order-total {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 18px;
    text-align: right;
}

.btn-view-order {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid #e8e8e8;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-view-order:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.btn-view-order i {
    font-size: 13px;
}

/* Responsive Account Page */
@media (max-width: 1024px) {
    .account-grid {
        grid-template-columns: 240px 1fr;
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .account-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .account-sidebar {
        order: 2;
    }

    .account-content {
        order: 1;
    }

    .account-page .container {
        padding: 0 16px;
    }

    .account-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 8px;
    }

    .account-nav::-webkit-scrollbar {
        display: none;
    }

    .account-nav-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
        flex-shrink: 0;
        font-size: 13px;
        padding: 10px 14px;
    }

    .account-nav-item.active {
        border-left: none;
        border-bottom-color: #1a1a1a;
    }

    .account-sidebar {
        margin: 0 -24px;
        padding: 0 24px;
        overflow: hidden;
    }

    .account-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .stat-item {
        border-bottom: none;
        border-right: 1px solid #e8e8e8;
        padding: 0;
    }

    .stat-item:last-child {
        border-right: none;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
        max-width: 100%;
        width: 100%;
    }

    .account-page {
        padding: 20px 0 60px;
        width: 100%;
        overflow-x: hidden;
    }

    .account-page .container {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
    }

    .account-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        margin-bottom: 24px;
        width: 100%;
    }

    .account-title {
        font-size: 22px;
    }

    .btn-logout {
        padding: 10px 16px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
    }

    .account-content {
        padding: 20px 16px;
        border: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .account-form {
        max-width: 100%;
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
        max-width: 100%;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 12px;
        font-size: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 24px;
    }

    .account-stats {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        padding: 12px 0;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .addresses-list {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .btn-add-address {
        width: 100%;
    }

    .address-card {
        padding: 16px;
        width: 100%;
        max-width: 100%;
    }

    .orders-list {
        gap: 12px;
        width: 100%;
        max-width: 100%;
    }

    .orders-list .order-item {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
        width: 100%;
        max-width: 100%;
    }

    .order-header {
        gap: 8px;
    }

    .order-number {
        font-size: 13px;
    }

    .order-status {
        font-size: 9px;
        padding: 4px 10px;
    }

    .order-details {
        gap: 8px;
    }

    .order-date {
        font-size: 12px;
    }

    .order-total {
        font-size: 16px;
        text-align: left;
    }

    .btn-view-order {
        width: 100%;
        padding: 12px 20px;
        font-size: 11px;
    }

    .btn-save {
        width: 100%;
        padding: 12px 24px;
    }
}

/* =============================================
   ORDER DETAILS MODAL
   ============================================= */

.order-details-popup {
    border-radius: 12px;
}

.order-details-popup .swal2-title {
    font-size: 18px;
    font-weight: 600;
    padding: 20px 20px 10px 20px;
    margin: 0;
}

.order-details-popup .swal2-close {
    font-size: 28px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-details-container {
    padding: 0 !important;
    margin: 0 !important;
    max-height: 70vh;
    overflow-y: auto;
}

.order-details-modal {
    text-align: left;
}

/* Modal Order Info */
.modal-order-info {
    background: #fafafa;
    padding: 20px;
    border: 1px solid #e8e8e8;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
}

.info-row:first-child {
    padding-top: 0;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-row .label {
    font-size: 13px;
    color: #757575;
    font-weight: 500;
}

.info-row .value {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
}

/* Badge Status */
.badge-status {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    border: 1px solid transparent;
}

/* Modal Sections */
.modal-section {
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
    padding: 20px;
    background: #fff;
}

.modal-section h3 {
    margin: 0 0 16px 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a1a1a;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
}

.modal-section p {
    margin: 6px 0;
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.6;
}

.modal-section p strong {
    font-weight: 600;
    font-size: 15px;
}

.order-details-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-detail-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
}

.order-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.order-item-info {
    flex: 1;
}

.order-item-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1a1a1a;
}

.order-item-info p {
    margin: 4px 0;
    font-size: 13px;
    color: #666;
}

.order-item-total {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
    flex-shrink: 0;
}

/* Modal Total */
.modal-total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fafafa;
    border: 2px solid #e8e8e8;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Order Modal Responsive */
@media (max-width: 600px) {
    .order-details-popup {
        width: 95% !important;
        max-width: 95% !important;
        margin: 10px !important;
    }

    .order-details-popup .swal2-title {
        font-size: 16px;
        padding: 16px;
    }

    .order-details-popup .swal2-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .order-details-popup .swal2-html-container {
        padding: 0 !important;
        margin: 0 !important;
    }

    .order-details-container {
        max-height: 60vh;
        padding: 0 !important;
    }

    .modal-order-info {
        padding: 16px;
    }

    .info-row {
        padding: 8px 0;
    }

    .info-row .label,
    .info-row .value {
        font-size: 12px;
    }

    .badge-status {
        padding: 4px 10px;
        font-size: 10px;
        letter-spacing: 0.3px;
    }

    .modal-section {
        padding: 16px;
    }

    .modal-section h3 {
        font-size: 11px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .modal-section p {
        font-size: 13px;
    }

    .order-detail-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }

    .order-item-image {
        width: 100%;
        height: 150px;
    }

    .order-item-info h4 {
        font-size: 13px;
    }

    .order-item-info p {
        font-size: 12px;
    }

    .order-item-total {
        font-size: 14px;
        align-self: flex-end;
        margin-top: 8px;
    }

    .modal-total-section {
        padding: 16px;
        font-size: 16px;
    }
}

/* =============================================
   AUTH PAGES (Forgot Password, Reset, Verify)
   ============================================= */

.auth-page {
    min-height: 70vh;
    padding: 80px 0;
    display: flex;
    align-items: center;
    background: #fafafa;
}

.auth-page-content {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e8e8e8;
    padding: 48px 40px;
}

.auth-page-header {
    text-align: center;
    margin-bottom: 32px;
}

.success-icon,
.error-icon,
.info-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.success-icon {
    color: #4caf50;
}

.error-icon {
    color: #f44336;
}

.info-icon {
    color: #2196f3;
}

.auth-page-title {
    font-size: 28px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.auth-page-description {
    font-size: 15px;
    color: #757575;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.auth-page-form {
    margin-top: 32px;
}

.auth-page-form .form-group {
    margin-bottom: 20px;
}

.auth-page-form .form-group:last-of-type {
    margin-bottom: 24px;
}

.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #333;
}

.auth-page-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
    text-align: center;
}

.auth-link {
    color: #757575;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #1a1a1a;
    opacity: 1;
}

.forgot-password-link {
    text-align: right;
    margin-bottom: 16px;
}

.forgot-password-link a {
    font-size: 13px;
    color: #757575;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password-link a:hover {
    color: #1a1a1a;
}

/* Responsive Auth Pages */
@media (max-width: 600px) {
    .auth-page {
        padding: 40px 0;
    }

    .auth-page-content {
        padding: 32px 24px;
    }

    .auth-page-title {
        font-size: 24px;
    }

    .success-icon,
    .error-icon,
    .info-icon {
        font-size: 48px;
    }
}

/* =============================================
   SWEETALERT2 CUSTOM STYLES - Professional
   ============================================= */

/* Elegant popup styling */
.swal-elegant {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    border-radius: 16px !important;
    padding: 0 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
}

.swal-elegant .swal2-icon {
    margin: 32px auto 24px !important;
    border-width: 3px !important;
}

.swal-elegant .swal2-title {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    padding: 0 32px !important;
    margin: 0 !important;
    letter-spacing: -0.02em !important;
}

.swal-elegant .swal2-html-container {
    margin: 16px 0 0 0 !important;
    padding: 0 32px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #333 !important;
}

.swal-elegant .swal2-actions {
    margin: 32px 0 32px !important;
    padding: 0 32px !important;
    gap: 12px !important;
}

/* Custom buttons */
.swal-btn-confirm,
.swal-btn-cancel {
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 14px 32px !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    letter-spacing: -0.01em !important;
}

.swal-btn-confirm {
    background: #1a1a1a !important;
    color: #fff !important;
}

.swal-btn-confirm:hover {
    background: #2d2d2d !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.2) !important;
}

.swal-btn-cancel {
    background: #f5f5f5 !important;
    color: #666 !important;
}

.swal-btn-cancel:hover {
    background: #e8e8e8 !important;
}

/* Info icon custom color */
.swal-elegant .swal2-icon.swal2-info {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}

/* Error icon custom color */
.swal-elegant .swal2-icon.swal2-error {
    border-color: #ef4444 !important;
}

.swal-elegant .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ef4444 !important;
}

/* Success icon custom color */
.swal-elegant .swal2-icon.swal2-success {
    border-color: #10b981 !important;
}

.swal-elegant .swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #10b981 !important;
}

.swal-elegant .swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(16, 185, 129, 0.3) !important;
}

/* Warning icon custom color */
.swal-elegant .swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

/* Responsive */
@media (max-width: 600px) {
    .swal-elegant {
        border-radius: 12px !important;
    }

    .swal-elegant .swal2-title {
        font-size: 19px !important;
        padding: 0 24px !important;
    }

    .swal-elegant .swal2-html-container {
        padding: 0 24px !important;
        font-size: 14px !important;
    }

    .swal-elegant .swal2-actions {
        padding: 0 24px !important;
        margin: 24px 0 24px !important;
    }

    .swal-btn-confirm,
    .swal-btn-cancel {
        font-size: 14px !important;
        padding: 13px 24px !important;
    }

    .swal-elegant .swal2-icon {
        margin: 24px auto 20px !important;
        width: 60px !important;
        height: 60px !important;
    }
}
