/* PRODUCTS SECTION - HOME PAGE*/

.products-section {
    padding: 5rem 2rem;
    background: linear-gradient(150deg, #ede9e3 0%, #f7f4ef 60%, #faf8f5 100%);
    position: relative;
    overflow: hidden;
  
}

/* Blueprint grid overlay */
.products-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(10, 25, 47, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 25, 47, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

/* Amber hatch — top right */
.products-section::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 340px;
    height: 340px;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(243, 156, 18, 0.07) 0px,
        rgba(243, 156, 18, 0.07) 1px,
        transparent 1px,
        transparent 14px
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.products-section > * {
    position: relative;
    z-index: 1;
}

.products-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* ── Header ── */
.products-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.products-badge {
    display: inline-block;
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    margin-bottom: 0.8rem;
    font-family: 'Poppins', sans-serif;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.products-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0a192f;
    margin-bottom: 0.4rem;
    font-family: 'Gabarito', sans-serif;
    letter-spacing: -0.7px;
}

.products-highlight {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.products-description {
    color: #64748b;
    font-size: 0.95rem;
    font-family: 'Bai Jamjuree', sans-serif;
    font-weight: 500;
}

/* ── Loading State ── */
.products-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(243, 156, 18, 0.1);
}

.products-loading i {
    font-size: 2.5rem;
    color: #f39c12;
    margin-bottom: 1rem;
    display: block;
}

.products-loading p {
    color: #64748b;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

/* ── Grid - 4 columns on desktop ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 2.8rem;
}

/* ── Product Card ── */
.product-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(10, 25, 47, 0.06);
    border: 1px solid rgba(243, 156, 18, 0.08);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(10, 25, 47, 0.12);
    border-color: rgba(243, 156, 18, 0.25);
}

/* ── Image ── */
.product-card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8fafc;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.5s ease;
    display: block;
    background: #ffffff;
}

.product-card:hover .product-card-image img {
    transform: scale(1.02);
}

/* ── Badges ── */
.product-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc2626;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    z-index: 2;
    letter-spacing: 0.3px;
}

/* Stock badge - moved to bottom left, smaller */
.product-card-stock {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Poppins', sans-serif;
    font-size: 0.55rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    z-index: 2;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.product-card-stock.in-stock {
    background: rgba(22, 163, 74, 0.85);
}

.product-card-stock.out-stock {
    background: rgba(220, 38, 38, 0.85);
}

/* ── Content - Compact ── */
.product-card-body {
    padding: 0.8rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0a192f;
    font-family: 'Gabarito', sans-serif;
    line-height: 1.3;
    letter-spacing: -0.2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4rem;
    transition: color 0.3s ease;
    margin-bottom: 0.1rem;
}

.product-card:hover .product-card-name {
    color: #f39c12;
}

.product-card-sku {
    font-size: 0.65rem;
    color: #94a3b8;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.2rem;
}

/* ── Price ── */
.product-card-price {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin: 0.2rem 0 0.2rem;
}

.product-card-price .current {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0a192f;
    font-family: 'Gabarito', sans-serif;
}

.product-card-price .original {
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: line-through;
      font-family: 'Gabarito', sans-serif;
}

.product-card-price .sale-tag {
    background: #dc2626;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ── Categories ── */
.product-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0.2rem 0;
}

.product-card-categories .cat-tag {
    background: #f1f5f9;
    color: #64748b;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
}

/* ── Actions ── */
.product-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(243, 156, 18, 0.1);
}

.product-card-actions .add-to-cart {
    flex: 1;
    padding: 0.45rem 0.8rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #2a2739;
    border: none;
    border-radius: 8px;
 font-family: 'Bai Jamjuree', sans-serif;
    font-size: 0.87rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    letter-spacing: -0.3px;
}

.product-card-actions .add-to-cart i {
    font-size: 0.7rem;
}

.product-card-actions .add-to-cart:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.product-card-actions .add-to-cart:disabled {
    background: #94a3b8;
    color: #ffffff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.product-card-actions .view-product {
    padding: 0.45rem 0.7rem;
    background: #f1f5f9;
    color: #0a192f;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.7rem;
}

.product-card-actions .view-product:hover {
    background: #e2e8f0;
    color: #f39c12;
}

/* ── Footer Button ── */
.products-footer {
    text-align: center;
}

.products-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #0a192f, #0d2240);
    color: #ffffff;
    text-decoration: none;
    padding: 0.45rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    border: 1px solid rgba(243, 156, 18, 0.3);
    box-shadow: 0 4px 14px rgba(10, 25, 47, 0.15);
}

.products-view-all-btn:hover {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #0a192f;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(243, 156, 18, 0.3);
}

.products-view-all-btn i {
    transition: transform 0.3s ease;
}

.products-view-all-btn:hover i {
    transform: translateX(6px);
}

/* ── Toast Notification ── */
.product-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0a192f;
    color: #ffffff;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    border: 1px solid rgba(243, 156, 18, 0.3);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
}

.product-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.product-toast i {
    font-size: 1.2rem;
    color: #48bb78;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
    
    .product-card-image {
        height: 250px;
    }
}

@media (max-width: 992px) {
    .products-section {
        padding: 4rem 1.5rem;
    }
    
    .products-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
    
    .product-card-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .products-section {
        padding: 3rem 1rem;
    }
    
    .products-title {
        font-size: 1.8rem;
    }
    
    .products-grid {
        gap: 1rem;
    }
    
    .product-card-image {
        height: 250px;
    }
    
    .product-card-body {
        padding: 0.7rem 0.9rem 0.9rem;
    }
    
    .product-card-name {
        font-size: 1rem;
        min-height: 2.2rem;
    }
    
    .product-card-price .current {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .products-section {
        padding: 2rem 0.8rem;
    }
    
    .products-title {
        font-size: 1.5rem;
    }
    
    .products-description {
        font-size: 0.85rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    
    .product-card-image {
        height: 240px;
    }
    
    .product-card-body {
        padding: 0.6rem 0.7rem 0.8rem;
    }
    
    .product-card-name {
        font-size: 0.9rem;
        min-height: 2rem;
    }
    
    .product-card-sku {
        font-size: 0.65rem;
    }
    
    .product-card-price .current {
        font-size: 0.95rem;
    }
    
    .product-card-price .original {
        font-size: 0.8rem;
    }
    
    .product-card-categories .cat-tag {
        font-size: 0.68rem;
        padding: 0.1rem 0.4rem;
    }
    
    .product-card-actions .add-to-cart {
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem;
    }
    
    .product-card-actions .view-product {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .product-toast {
        bottom: 20px;
        right: 20px;
        padding: 0.7rem 1rem;
        font-size: 0.75rem;
    }
    
    .product-toast i {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .products-grid {
        gap: 0.5rem;
    }
    
    .product-card-image {
        height: 240px;
    }
    
    .product-card-body {
        padding: 0.5rem 0.5rem 0.6rem;
    }
    
    .product-card-name {
        font-size: 0.9rem;
        min-height: 1.6rem;
    }
    
    .product-card-price .current {
        font-size: 0.85rem;
    }
    
    .product-card-actions .add-to-cart {
        font-size: 0.9rem;
        padding: 0.25rem 0.3rem;
        gap: 0.2rem;
    }
    
    .product-card-actions .view-product {
        padding: 0.25rem 0.3rem;
        font-size: 0.7rem;
    }
}



/* ===========SINGLE PRODUCT PAGE=========== */


/* PRODUCT DETAIL SECTION */
.product-detail-section {
    padding: 4rem 2rem;
    background: linear-gradient(150deg, #ede9e3 0%, #f7f4ef 60%, #faf8f5 100%);
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    margin-top: -18px;
}

.product-detail-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(10, 25, 47, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 25, 47, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Loading State */
.product-detail-loading {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(243, 156, 18, 0.1);
}

.product-detail-loading i {
    font-size: 2.5rem;
    color: #f39c12;
    display: block;
    margin-bottom: 1rem;
}

.product-detail-loading p {
    color: #64748b;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

/* Error State */
.product-error {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.product-error i {
    font-size: 3rem;
    color: #dc2626;
    display: block;
    margin-bottom: 1rem;
}

.product-error h3 {
    font-family: 'Gabarito', sans-serif;
    font-size: 1.5rem;
    color: #0a192f;
    margin-bottom: 0.5rem;
}

.product-error p {
    color: #64748b;
    font-family: 'Bai Jamjuree', sans-serif;
    margin-bottom: 1.5rem;
}

.product-error-btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #0a192f;
    border-radius: 40px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-error-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
}

/* Product Detail Grid */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(10, 25, 47, 0.06);
    border: 1px solid rgba(243, 156, 18, 0.08);
}

/* Product Image */
.product-detail-image {
    position: relative;
    height: 420px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    transition: transform 0.3s ease;
}

.product-detail-image img:hover {
    transform: scale(1.02);
}

.product-detail-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 4rem;
}

/* Product Info - ALL LEFT ALIGNED */
.product-detail-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding-top: 0.5rem;
}

.product-detail-sku {
    font-size: 0.75rem;
    color: #94a3b8;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
    margin-bottom: 0.1rem;
}

.product-detail-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0a192f;
    font-family: 'Gabarito', sans-serif;
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.2;
    text-align: left;
}

.product-detail-price {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 0.2rem 0 0.1rem;
}

.product-detail-price-current {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0a192f;
    font-family: 'Gabarito', sans-serif;
}

.product-detail-price-original {
    font-size: 1rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-family: 'Gabarito', sans-serif;
}

.product-detail-sale-tag {
    background: #dc2626;
    color: #ffffff;
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
}

.product-detail-stock-status {
    margin: 0.1rem 0;
}

.product-detail-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-detail-stock.in-stock {
    background: #dcfce7;
    color: #16a34a;
}

.product-detail-stock.out-stock {
    background: #fee2e2;
    color: #dc2626;
}

.product-detail-stock i {
    font-size: 0.7rem;
}

.product-detail-description {
    font-size: 0.88rem;
    color: #64748b;
    font-family: 'Bai Jamjuree', sans-serif;
    line-height: 1.4;
    margin: 0.2rem 0 0.1rem;
    text-align: left;
    font-weight: 500;
}

.product-detail-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    margin: 0.2rem 0;
}

.product-detail-cat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0a192f;
    font-family: 'Poppins', sans-serif;
}

.product-detail-cat-tag {
    background: #f1f5f9;
    color: #64748b;
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-family: 'Poppins', sans-serif;
}

.product-detail-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #f0f0f0;
    width: 100%;
}

.add-to-cart-btn {
    padding: 0.6rem 1.8rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #0a192f;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.add-to-cart-btn i {
    font-size: 0.8rem;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.add-to-cart-btn:disabled {
    background: #94a3b8;
    color: #ffffff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.back-to-store-btn {
    padding: 0.6rem 1.2rem;
    background: #f1f5f9;
    color: #0a192f;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.back-to-store-btn i {
    font-size: 0.9rem;

}

.back-to-store-btn:hover {
    background: #e2e8f0;
    color: #f39c12;
}

/* PRODUCT DETAIL - RESPONSIVE */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .product-detail-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .product-detail-section {
        padding: 2rem 1rem;
    }
    
    .product-detail-grid {
        padding: 1.2rem;
        gap: 1.2rem;
    }
    
    .product-detail-image {
        height: 280px;
    }
    
    .product-detail-name {
        font-size: 1.3rem;
    }
    
    .product-detail-price-current {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .product-detail-section {
        padding: 1.5rem 0.6rem;
    }


    .product-detail-loading {
  
    padding: 4rem 1.3rem;
  
    }


    
    .product-detail-grid {
        padding: 0.8rem;
        gap: 0.8rem;
        border-radius: 12px;
    }
    
    .product-detail-image {
        height: 230px;
        border-radius: 8px;
    }
    
    .product-detail-image img {
        padding: 12px;
    }
    
    .product-detail-name {
        font-size: 1.1rem;
    }
    
    .product-detail-price-current {
        font-size: 1.1rem;
    }
    
    .product-detail-price-original {
        font-size: 0.95rem;
    }
    
    .product-detail-description {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .product-detail-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .add-to-cart-btn {
        justify-content: center;
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .back-to-store-btn {
        justify-content: center;
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .product-toast {
        bottom: 15px;
        right: 15px;
        padding: 0.6rem 1rem;
        font-size: 0.7rem;
    }
    
    .product-toast i {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .product-detail-image {
        height: 220px;
    }
    
    .product-detail-name {
        font-size: 1rem;
    }
    
    .product-detail-price-current {
        font-size: 1rem;
    }
}


.quantity-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.4rem 0 0.2rem;
    width: 100%;
}

.quantity-wrap label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0a192f;
    font-family: 'Poppins', sans-serif;
}

.qty-group {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    height: 32px;
}

.qty-btn-left,
.qty-btn-right {
    width: 30px;
    height: 100%;
    background: #f3f4f6;
    border: none;
    color: #0a192f;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-weight: 600;
}

.qty-btn-left:hover:not(:disabled),
.qty-btn-right:hover:not(:disabled) {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.qty-btn-left:disabled,
.qty-btn-right:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#qtyInput {
    width: 38px;
    height: 100%;
    border: none;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: #0a192f;
    background: #fff;
    padding: 0;
    -moz-appearance: textfield;
}

#qtyInput::-webkit-inner-spin-button,
#qtyInput::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#qtyInput:focus {
    outline: none;
    border-color: #f39c12;
}

@media (max-width: 576px) {
    .quantity-wrap {
        gap: 0.4rem;
    }
    .qty-group {
        height: 28px;
    }
    .qty-btn-left,
    .qty-btn-right {
        width: 26px;
        font-size: 0.75rem;
    }
    #qtyInput {
        width: 32px;
        font-size: 0.7rem;
    }
}


/* RELATED PRODUCTS SECTION */
.related-products-section {
    padding: 3rem 2rem 4rem;
    background: #ffffff;
    position: relative;
}

.related-products-container {
    max-width: 1200px;
    margin: 0 auto;
}

.related-products-header {
    text-align: center;
    margin-bottom: 2rem;
}

.related-products-badge {
    display: inline-block;
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.related-products-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0a192f;
    font-family: 'Gabarito', sans-serif;
    letter-spacing: -0.5px;
    margin: 0;
}

.related-products-highlight {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

/* Related Loading */
.related-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

.related-loading i {
    font-size: 2rem;
    color: #f39c12;
    display: block;
    margin-bottom: 0.5rem;
}

.related-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

.related-empty i {
    font-size: 2.5rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 0.5rem;
}

/* Related Product Card */
.related-product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(10, 25, 47, 0.05);
    border: 1px solid rgba(243, 156, 18, 0.09);
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(10, 25, 47, 0.1);
    border-color: rgba(243, 156, 18, 0.2);
}

.related-product-image {
    height: 290px;
    background: #ffffff;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.3s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.03);
}

.related-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2rem;
}

.related-product-info {
    padding: 0.6rem 0.8rem 0.8rem;
}

.related-product-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0a192f;
    font-family: 'Gabarito', sans-serif;
    margin: 0 0 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2rem;
    line-height: 1.2;
    text-align: left;
}

.related-product-price {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.related-price-current {
    font-weight: 700;
    color: #0a192f;
    font-family: 'Gabarito', sans-serif;
    font-size: 0.99rem;
}

.related-price-original {
    font-size: 0.85rem;
    color: #828b97;
    text-decoration: line-through;
    font-family: 'Gabarito', sans-serif;
}

.related-product-stock {
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    display: block;
    margin-top: 0.1rem;
}

.related-product-stock.in-stock {
    color: #16a34a;
}

.related-product-stock.out-stock {
    color: #dc2626;
}

/* Toast */
.product-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0a192f;
    color: #ffffff;
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    border: 1px solid rgba(243, 156, 18, 0.3);
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.product-toast i {
    font-size: 1.1rem;
    color: #48bb78;
}

/* RELATED PRODUCTS - RESPONSIVE */
@media (max-width: 992px) {
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .related-products-section {
        padding: 2rem 1rem 3rem;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .related-products-title {
        font-size: 1.3rem;
    }
    
    .related-product-image {
        height: 240px;
    }
}

@media (max-width: 576px) {
    .related-products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    
    .related-product-image {
        height: 220px;
    }
    
    .related-product-name {
        font-size: 0.7rem;
        min-height: 1.6rem;
    }
    
    .related-price-current {
        font-size: 1.2rem;
        margin-top: 10px;
    }
    
    .product-toast {
        bottom: 15px;
        right: 15px;
        padding: 0.6rem 1rem;
        font-size: 0.7rem;
    }
    
    .product-toast i {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .related-products-grid {
        gap: 0.4rem;
    }
    
    .related-product-image {
        height: 220px;
    }
    
    .related-product-info {
        padding: 0.4rem 0.5rem 0.5rem;
    }
    
    .related-product-name {
        font-size: 0.85rem;
        min-height: 1.4rem;
    }
}



/* ================SHOP PAGE FULL=========== */


/* SHOP SECTION */
.shop-section {
    padding: 5rem 2rem;
    background: linear-gradient(150deg, #ede9e3 0%, #f7f4ef 60%, #faf8f5 100%);
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    margin-top: -18px;
}

.shop-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(10, 25, 47, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 25, 47, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

.shop-section::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 340px;
    height: 340px;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(243, 156, 18, 0.07) 0px,
        rgba(243, 156, 18, 0.07) 1px,
        transparent 1px,
        transparent 14px
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.shop-section > * {
    position: relative;
    z-index: 1;
}

.shop-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Header */
.shop-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.shop-badge {
    display: inline-block;
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    margin-bottom: 0.8rem;
    font-family: 'Poppins', sans-serif;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.shop-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0a192f;
    margin-bottom: 0.4rem;
    font-family: 'Gabarito', sans-serif;
    letter-spacing: -0.7px;
}

.shop-highlight {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.shop-description {
    color: #64748b;
    font-size: 0.95rem;
    font-family: 'Bai Jamjuree', sans-serif;
    font-weight: 500;
}

/* Filters */
.shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    background: #ffffff;
    padding: 1.2rem 1.5rem;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(10, 25, 47, 0.06);
    border: 1px solid rgba(243, 156, 18, 0.08);
    margin-bottom: 1.5rem;
    align-items: center;
}

.shop-filter-group {
    flex: 1;
    min-width: 160px;
}

.shop-filter-group input,
.shop-filter-group select {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #0a192f;
    background: #ffffff;
    transition: border-color 0.3s ease;
}

.shop-filter-group input:focus,
.shop-filter-group select:focus {
    outline: none;
    border-color: #f39c12;
}

.shop-filter-actions {
    display: flex;
    gap: 0.6rem;
}

.shop-filter-btn {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #0a192f;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.shop-filter-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.shop-filter-reset {
    padding: 0.6rem 1.2rem;
    background: #f1f5f9;
    color: #0a192f;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.shop-filter-reset:hover {
    background: #e2e8f0;
    color: #f39c12;
}

/* Results Info */
.shop-results-info {
    text-align: center;
    color: #64748b;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

/* Products Grid */
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
    margin-bottom: 2rem;
}

/* Loading */
.shop-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(243, 156, 18, 0.1);
}

.shop-loading i {
    font-size: 2.5rem;
    color: #f39c12;
    display: block;
    margin-bottom: 1rem;
}

.shop-loading p {
    color: #64748b;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

/* Error */
.shop-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.shop-error i {
    font-size: 3rem;
    color: #dc2626;
    display: block;
    margin-bottom: 1rem;
}

.shop-error h3 {
    font-family: 'Gabarito', sans-serif;
    font-size: 1.5rem;
    color: #0a192f;
    margin-bottom: 0.5rem;
}

.shop-error p {
    color: #64748b;
    font-family: 'Bai Jamjuree', sans-serif;
    margin-bottom: 1.5rem;
}

.shop-error-btn {
    padding: 0.7rem 2rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #0a192f;
    border: none;
    border-radius: 40px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-error-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
}

/* Empty */
.shop-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(243, 156, 18, 0.1);
}

.shop-empty i {
    font-size: 3rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 1rem;
}

.shop-empty h3 {
    font-family: 'Gabarito', sans-serif;
    font-size: 1.5rem;
    color: #0a192f;
    margin-bottom: 0.5rem;
}

.shop-empty p {
    color: #64748b;
    font-family: 'Bai Jamjuree', sans-serif;
    margin-bottom: 1.5rem;
}

.shop-empty-btn {
    padding: 0.7rem 2rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #0a192f;
    border: none;
    border-radius: 40px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-empty-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
}

/* Product Card */
.shop-product-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(10, 25, 47, 0.06);
    border: 1px solid rgba(243, 156, 18, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.shop-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(10, 25, 47, 0.12);
    border-color: rgba(243, 156, 18, 0.25);
}

.shop-product-image {
    position: relative;
    height: 230px;
    background: #f8fafc;
    overflow: hidden;
}

.shop-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s ease;
}

.shop-product-card:hover .shop-product-image img {
    transform: scale(1.03);
}

.shop-product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2.5rem;
}

.shop-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc2626;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    z-index: 2;
    letter-spacing: 0.3px;
}

.shop-product-stock-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.55rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    z-index: 2;
}

.shop-product-stock-badge.in-stock {
    background: rgba(22, 163, 74, 0.85);
    color: #ffffff;
}

.shop-product-stock-badge.out-stock {
    background: rgba(220, 38, 38, 0.85);
    color: #ffffff;
}

.shop-product-body {
    padding: 0.8rem 1rem 1rem;
}

.shop-product-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0a192f;
    font-family: 'Gabarito', sans-serif;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4rem;
    transition: color 0.3s ease;
    margin: 0 0 0.1rem;
}

.shop-product-card:hover .shop-product-name {
    color: #f39c12;
}

.shop-product-sku {
    font-size: 0.75rem;
    color: #94a3b8;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.7rem;
    margin-top: -19px;
}

.shop-product-price {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin: 0.2rem 0;
}

.shop-product-price-current {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0a192f;
    font-family: 'Gabarito', sans-serif;
}

.shop-product-price-original {
    font-size: 0.88rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 900;
}

.shop-product-sale-tag {
    background: #dc2626;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.shop-product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0.2rem 0;
}

.shop-product-cat-tag {
    background: #f1f5f9;
    color: #64748b;
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    margin-top: 10px;
}

.shop-product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(243, 156, 18, 0.1);
}

.shop-product-add-btn {
    flex: 1;
    padding: 0.45rem 0.8rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #0a192f;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    letter-spacing: -0.3px;
}

.shop-product-add-btn i {
    font-size: 0.7rem;
}

.shop-product-add-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.shop-product-add-btn:disabled {
    background: #94a3b8;
    color: #ffffff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.shop-product-view-btn {
    padding: 0.45rem 0.7rem;
    background: #f1f5f9;
    color: #0a192f;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.7rem;
}

.shop-product-view-btn:hover {
    background: #e2e8f0;
    color: #f39c12;
}

/* Pagination */
.shop-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.shop-page-btn {
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0a192f;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-page-btn:hover {
    background: #f1f5f9;
    border-color: #f39c12;
}

.shop-page-btn.active {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #0a192f;
    border-color: #f39c12;
}

.shop-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.shop-page-dots {
    color: #94a3b8;
    font-family: 'Poppins', sans-serif;
    padding: 0 0.3rem;
}

/* Toast */
.shop-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0a192f;
    color: #ffffff;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    border: 1px solid rgba(243, 156, 18, 0.3);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
}

.shop-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.shop-toast i {
    font-size: 1.2rem;
    color: #48bb78;
}

/* Responsive */
@media (max-width: 1200px) {
    .shop-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 992px) {
    .shop-section {
        padding: 4rem 1.5rem;
    }
    
    .shop-title {
        font-size: 2rem;
    }
    
    .shop-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .shop-filters {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .shop-section {
        padding: 3rem 1rem;
    }
    
    .shop-title {
        font-size: 1.8rem;
    }
    
    .shop-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }
    
    .shop-filter-group {
        min-width: 100%;
    }
    
    .shop-filter-actions {
        justify-content: center;
    }
    
    .shop-products-grid {
        gap: 0.8rem;
    }
    
    .shop-product-image {
        height: 260px;
    }
}

@media (max-width: 576px) {
    .shop-section {
        padding: 2rem 0.8rem;
    }
    
    .shop-title {
        font-size: 1.5rem;
    }
    
    .shop-description {
        font-size: 0.85rem;
    }
    
    .shop-products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    
    .shop-product-image {
        height: 230px;
    }
    
    .shop-product-body {
        padding: 0.6rem 0.7rem 0.8rem;
    }
    
    .shop-product-name {
        font-size: 0.85rem;
        min-height: 2rem;
    }
    
    .shop-product-sku {
        font-size: 0.6rem;
        margin-top: 0px;
    }
    
    .shop-product-price-current {
        font-size: 1rem;
    }
    
    .shop-product-price-original {
        font-size: 0.7rem;
    }
    
    .shop-product-cat-tag {
        font-size: 0.65rem;
        margin-top: 8px;
    }
    
    .shop-product-add-btn {
        font-size: 0.8rem;
        padding: 0.35rem 0.5rem;
        letter-spacing: -0.2px;
    }
    
    .shop-product-view-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .shop-toast {
        bottom: 20px;
        right: 20px;
        padding: 0.7rem 1rem;
        font-size: 0.75rem;
    }
    
    .shop-toast i {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .shop-products-grid {
        gap: 0.5rem;
    }
    
    .shop-product-image {
        height: 220px;
    }
    
    .shop-product-body {
        padding: 0.5rem 0.5rem 0.6rem;
    }
    
    .shop-product-name {
        font-size: 0.8rem;
        min-height: 1.6rem;
        line-height: 1.1;
    }
    
    .shop-product-price-current {
        font-size: 0.9rem;
    }
}



/* =========CART PAGE STARTS======== */

/* Cart Page */
.cart-page {
    padding: 4rem 2rem;
    background: linear-gradient(150deg, #ede9e3 0%, #f7f4ef 60%, #faf8f5 100%);
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    margin-top: -18px;
}

.cart-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(10, 25, 47, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 25, 47, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

.cart-page::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 340px;
    height: 340px;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(243, 156, 18, 0.07) 0px,
        rgba(243, 156, 18, 0.07) 1px,
        transparent 1px,
        transparent 14px
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.cart-page > * {
    position: relative;
    z-index: 1;
}

.cart-page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.cart-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.cart-badge {
    display: inline-block;
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    margin-bottom: 0.8rem;
    font-family: 'Poppins', sans-serif;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.cart-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0a192f;
    margin-bottom: 0.4rem;
    font-family: 'Gabarito', sans-serif;
    letter-spacing: -0.7px;
}

.cart-title .highlight {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cart-description {
    color: #64748b;
    font-size: 0.95rem;
    font-family: 'Bai Jamjuree', sans-serif;
    font-weight: 500;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

.cart-items {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(10, 25, 47, 0.06);
    border: 1px solid rgba(243, 156, 18, 0.08);
}

.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 1.2rem;
}

.cart-items-header h3 {
    font-family: 'Gabarito', sans-serif;
    font-size: 1.1rem;
    color: #0a192f;
    margin: 0;
}

.cart-items-header .item-count {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: #64748b;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    transition: transform 0.3s ease;
}

.cart-item-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.5rem;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cart-item-name {
    font-family: 'Gabarito', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0a192f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-item-name:hover {
    color: #f39c12;
}

.cart-item-sku {
    font-size: 0.65rem;
    color: #94a3b8;
    font-family: 'Poppins', sans-serif;
}

.cart-item-price {
    font-weight: 700;
    color: #0a192f;
    font-family: 'Gabarito', sans-serif;
    font-size: 1rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 0.2rem;
}

.cart-item-qty button {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #0a192f;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.cart-item-qty button:hover {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.cart-item-qty button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cart-item-qty input {
    width: 36px;
    text-align: center;
    border: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0a192f;
    padding: 0.2rem 0;
}

.cart-item-qty input:focus {
    outline: none;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cart-item-remove:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
}

.cart-item-subtotal {
    font-weight: 700;
    color: #0a192f;
    font-family: 'Gabarito', sans-serif;
    font-size: 1rem;
    text-align: right;
    min-width: 80px;
}

.cart-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(243, 156, 18, 0.1);
}

.cart-empty i {
    font-size: 4rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 1.5rem;
}

.cart-empty h3 {
    font-family: 'Gabarito', sans-serif;
    font-size: 1.5rem;
    color: #0a192f;
    margin-bottom: 0.5rem;
}

.cart-empty p {
    color: #64748b;
    font-family: 'Bai Jamjuree', sans-serif;
    margin-bottom: 1.5rem;
}

.cart-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #0a192f, #0d2240);
    color: #ffffff;
    text-decoration: none;
    padding: 0.7rem 2rem;
    border-radius: 40px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.cart-empty-btn:hover {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #0a192f;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
}

.cart-summary {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(10, 25, 47, 0.06);
    border: 1px solid rgba(243, 156, 18, 0.08);
    position: sticky;
    top: 90px;
}

.cart-summary h3 {
    font-family: 'Gabarito', sans-serif;
    font-size: 1.2rem;
    color: #0a192f;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #64748b;
}

.summary-row .value {
    font-weight: 600;
    color: #0a192f;
}

.summary-row.total {
    padding-top: 0.8rem;
    margin-top: 0.5rem;
    border-top: 2px solid #f0f0f0;
    font-size: 1.1rem;
}

.summary-row.total .label {
    font-weight: 700;
    color: #0a192f;
}

.summary-row.total .value {
    font-size: 1.3rem;
    color: #f39c12;
}

.checkout-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #0a192f;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
}

.checkout-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
}

.checkout-btn:disabled {
    background: #94a3b8;
    color: #ffffff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #64748b;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    margin-top: 0.8rem;
    transition: all 0.2s ease;
}

.continue-shopping:hover {
    color: #f39c12;
}

.cart-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0a192f;
    color: #ffffff;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    border: 1px solid rgba(243, 156, 18, 0.3);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
}

.cart-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.cart-toast i {
    font-size: 1.2rem;
    color: #48bb78;
}

@media (max-width: 992px) {
    .cart-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cart-summary {
        position: static;
    }
    
    .cart-title {
        font-size: 2rem;
    }
}

/* Cart Page - Mobile Fixes */
@media (max-width: 768px) {
    .cart-page {
        padding: 3rem 1rem;
    }
    
    .cart-items {
        padding: 1rem;
    }
    
    .cart-item {
        display: grid;
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
        gap: 0.5rem 0.8rem;
        padding: 0.8rem 0;
        align-items: start;
    }
    
    .cart-item-image {
        grid-row: 1 / 3;
        width: 60px;
        height: 60px;
    }
    
    .cart-item-details {
        grid-column: 2;
        grid-row: 1;
    }
    
    .cart-item-actions {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        justify-self: start;
        margin-top: 0.2rem;
    }
    
    .cart-item-subtotal {
        grid-column: 2;
        grid-row: 2;
        text-align: right;
        justify-self: end;
        align-self: center;
        padding-top: 0;
        border-top: none;
        font-size: 0.9rem;
    }
    
    .cart-item-qty {
        gap: 0.2rem;
        padding: 0.1rem;
    }
    
    .cart-item-qty button {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .cart-item-qty input {
        width: 30px;
        font-size: 0.8rem;
        padding: 0.1rem 0;
    }
    
    .cart-item-remove {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .cart-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .cart-page {
        padding: 2rem 0.6rem;
    }
    
    .cart-items {
        padding: 0.6rem;
        border-radius: 12px;
    }
    
    .cart-item {
        grid-template-columns: 50px 1fr;
        gap: 0.4rem 0.6rem;
        padding: 0.6rem 0;
    }
    
    .cart-item-image {
        width: 50px;
        height: 50px;
        grid-row: 1 / 3;
    }
    
    .cart-item-image img {
        padding: 4px;
    }
    
    .cart-item-details {
        gap: 0.1rem;
    }
    
    .cart-item-name {
        font-size: 0.8rem;
    }
    
    .cart-item-sku {
        font-size: 0.55rem;
    }
    
    .cart-item-price {
        font-size: 0.9rem;
    }
    
    .cart-item-actions {
        gap: 0.3rem;
        flex-wrap: wrap;
    }
    
    .cart-item-qty {
        gap: 0.1rem;
        padding: 0.1rem;
    }
    
    .cart-item-qty button {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
    
    .cart-item-qty input {
        width: 26px;
        font-size: 0.9rem;
        padding: 0.1rem 0;
    }
    
    .cart-item-remove {
        padding: 0.15rem 0.3rem;
        font-size: 0.9rem;
    }
    
    .cart-item-subtotal {
        font-size: 0.9rem;
    }
    
    .cart-items-header h3 {
        font-size: 0.95rem;
    }
    
    .cart-items-header .item-count {
        font-size: 0.7rem;
    }
    
    .cart-summary {
        padding: 0.8rem;
        border-radius: 12px;
    }
    
    .cart-summary h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
        padding-bottom: 0.6rem;
    }
    
    .summary-row {
        font-size: 0.8rem;
        padding: 0.3rem 0;
    }
    
    .summary-row.total {
        padding-top: 0.6rem;
        margin-top: 0.3rem;
        font-size: 0.95rem;
    }
    
    .summary-row.total .value {
        font-size: 1.1rem;
    }
    
    .checkout-btn {
        padding: 0.6rem;
        font-size: 0.85rem;
        border-radius: 6px;
        margin-top: 0.8rem;
    }
    
    .checkout-btn i {
        font-size: 0.8rem;
    }
    
    .continue-shopping {
        font-size: 0.7rem;
        margin-top: 0.6rem;
    }
    
    .cart-title {
        font-size: 1.2rem;
    }
    
    .cart-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .cart-description {
        font-size: 0.8rem;
    }
    
    .cart-header {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 400px) {
    .cart-item {
        grid-template-columns: 44px 1fr;
        gap: 0.3rem 0.4rem;
        padding: 0.5rem 0;
    }
    
    .cart-item-image {
        width: 44px;
        height: 44px;
    }
    
    .cart-item-name {
        font-size: 0.9rem;
    }
    
    .cart-item-sku {
        font-size: 0.7rem;
    }
    
    .cart-item-price {
        font-size: 0.86rem;
    }
    
    .cart-item-qty button {
        width: 20px;
        height: 20px;
        font-size: 0.9rem;
    }
    
    .cart-item-qty input {
        width: 22px;
        font-size: 0.8rem;
    }
    
    .cart-item-subtotal {
        font-size: 0.9rem;
    }
    
    .checkout-btn {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .cart-summary {
        padding: 0.6rem;
    }
    
    .summary-row {
        font-size: 0.7rem;
        padding: 0.2rem 0;
    }
    
    .summary-row.total .value {
        font-size: 1rem;
    }
}


.cart-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(243, 156, 18, 0.1);
}

.cart-empty i {
    font-size: 4rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 1.5rem;
}

.cart-empty h3 {
    font-family: 'Gabarito', sans-serif;
    font-size: 1.5rem;
    color: #0a192f;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.cart-empty p {
    color: #64748b;
    font-family: 'Bai Jamjuree', sans-serif;
    margin-bottom: 1.5rem;
}

.cart-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #0a192f, #0d2240);
    color: #f6f7ed;
    text-decoration: none;
    padding: 0.7rem 2rem;
    border-radius: 40px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.cart-empty-btn:hover {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #0a192f;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
}

.cart-empty-btn i {
    font-size: 0.9rem;
    display: inline-block;
    margin: 0;
    color: inherit;
}



