/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #f7eef4;
    color: black;
    overflow-x: hidden;
}

/* Home Container */
.home-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    background: transparent;
    width: 100%;
}

/* Navigation Bar */
.nav-bar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 84px;
    background: rgba(255, 255, 255, 0.41);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 47px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-bar .logo {
    width: 160px;
    height: 50px;
}

.nav-bar .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-bar .shopping-cart {
    width: 48px;
    height: 48px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;      /* ← REQUIRED */
    display: inline-block;
}

.nav-bar .shopping-cart img {
    width: 100%;
    height: 100%;
}
 
.nav-bar .shopping-cart .cart-count {
    position: absolute;
    top: -10px;
    right: -15px;
    padding: 8px 8px;
    background: red;
    color: white;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-bar .shopping-cart .cart-count:empty {
    display: none;
}

/* Background Rotation Container */
.bg-rotation-container {
    position: absolute;
    width: 100vw;
    height: auto;
    z-index: -1;
    pointer-events: none;
}

.bg-rotation-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-rotation-inner img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Hero Banner */
.hero-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0; /* optional spacing */
}

.hero-banner img {
    width: 100%;
    max-width: 800px;   /* adjust based on design */
    height: auto;       /* maintain aspect ratio */
    object-fit: contain;
}

/* Project Info Section */
.project-info {
    width: 100%;
    padding: 48px 20px;
    background: transparent;
}

.project-title {
    max-width: 1147px;
    margin: 0 auto 48px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-align: center;
    color: #962148;
    padding: 0 20px;
}

.info-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.info-content {
    flex: 1;
    min-width: 300px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 3vw, 24px);
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-align: center;
    color: #f392b1;
    margin: 0;
}

.info-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
    letter-spacing: 0.02em;
    text-align: justify;
    color: black;
    margin: 0;
}

.highlight-red {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-style: italic;
    color: #962148;
}

.highlight-pink {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-style: italic;
    color: #f392b1;
}

.highlight-bold-red {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #962148;
}

.info-conclusion {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 3vw, 24px);
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-align: justify;
    color: #962148;
    margin: 0;
}

.info-image {
    width: 100%;
    padding: 0 20px;  /* left-right spacing */
}

.info-image img {
    width: 100%;
    height: auto;
    /* border-radius: 24px;
    box-shadow: 0px 4px 32px rgba(0, 0, 0, 0.2); */
}

/* Campaign Details Section */
.campaign-details {
    width: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    background: transparent;
}

.campaign-description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 3vw, 24px);
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-align: center;
    color: #962148;
    max-width: 1172px;
    margin: 0;
}

.campaign-donation {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(16px, 2.5vw, 20px);
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-align: center;
    color: #f392b1;
    margin: 0;
    max-width: 90%;
}

.donation-levels {
    text-align: center;
    max-width: 679px;
    width: 100%;
}

.donation-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 3vw, 24px);
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #f392b1;
    margin-bottom: 12px;
}

.donation-amount {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(16px, 2.5vw, 24px);
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: black;
    margin: 8px 0;
}

.amount-highlight {
    font-weight: 700;
    color: #f392b1;
}

.donation-source {
    font-weight: 400;
}

.shop-links {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: clamp(16px, 2.5vw, 24px);
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    color: black;
}

.shop-links p {
    margin: 4px 0;
}

.cta-button {
    background: #962148;
    border-radius: 17px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 582px;
    text-decoration: none;
    display: block;
}

.cta-button:hover {
    background: #7a1a39;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(150, 33, 72, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-align: center;
    color: white;
    padding: 6px 0;
}

/* Product List Section */
.product-list {
    width: 100%;
    padding: 60px 20px;
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    background: transparent;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    display: block;
    height: 520px;
}

.product-list::-webkit-scrollbar {
    height: 8px;
}

.product-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.product-list::-webkit-scrollbar-thumb {
    background: #f392b1;
    border-radius: 10px;
}

.product-list::-webkit-scrollbar-thumb:hover {
    background: #962148;
}

.product-card {
    background: white;
    width: 100%;
    max-width: 320px;
    min-width: 280px;
    height: auto;
    border-radius: 23px;
    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    scroll-snap-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.2);
}

.product-image {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-name {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info {
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 2vw, 18px);
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-align: left;
    color: black;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info p {
    margin: 0;
}

.product-options {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.product-options h3 {
    font-size: 18px;
    margin-bottom: auto;
    margin-top: auto;
    font-weight: 600;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    transition: 0.2s ease;
}

.option-item input[type="radio"] {
    accent-color: #ff6688;
}

.option-item:hover {
    background: #ffe5ee;
}

.option-item input[type="radio"]:checked + span {
    font-weight: bold;
    color: #d62b70;
}


/* Footer */
.footer {
    width: 100%;
    min-height: 83px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border-top: 1px solid #f0f0f0;
}

.footer p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 2vw, 18px);
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    color: black;
    margin: 0;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .nav-bar {
        padding: 0 30px;
    }

    .nav-bar .logo {
        width: 120px;
        height: 40px;
    }

    .nav-bar .shopping-cart {
        width: 40px;
        height: 40px;
    }

    .hero-banner {
        height: 484px;
        margin-top: 50px;
    }

    .info-container {
        flex-direction: column;
        gap: 30px;
    }

    .info-content,
    .info-image {
        min-width: 100%;
        padding: 0 15px;
    }

    .product-list {
        padding: 40px 20px;
        gap: 20px;
        justify-content: flex-start;
    }

    .product-card {
        max-width: 280px;
        min-width: 250px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-bar {
        height: 70px;
        padding: 0 20px;
    }

    .nav-bar .logo {
        width: 100px;
        height: 35px;
    }

    .nav-bar .shopping-cart {
        width: 36px;
        height: 36px;
    }

    .hero-banner {
        height: 370px;
        margin-top: 30px;
    }

    .project-info,
    .campaign-details {
        padding: 30px 15px;
    }

    .project-title {
        margin-bottom: 30px;
        letter-spacing: 0.02em;
    }

    .info-content {
        gap: 20px;
        padding: 0 10px;
    }

    .info-image {
        padding: 0 10px;
    }

    .campaign-details {
        gap: 20px;
    }

    .donation-levels {
        padding: 0 10px;
    }

    .donation-amount {
        word-wrap: break-word;
    }

    .cta-button {
        padding: 10px 20px;
        max-width: 100%;
    }

    .product-list {
        padding: 30px 15px;
        gap: 15px;
    }

    .product-card {
        max-width: 260px;
        min-width: 240px;
    }

    .product-info {
        padding: 15px;
    }

    .footer {
        padding: 20px 15px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .nav-bar {
        height: 60px;
        padding: 0 15px;
    }

    .nav-bar .logo {
        width: 80px;
        height: 30px;
    }

    .nav-bar .shopping-cart {
        width: 32px;
        height: 32px;
    }

    .hero-banner {
        height: 310px;
        margin-top: 30px;
    }

    .project-info,
    .campaign-details {
        padding: 20px 10px;
    }

    .project-title {
        margin-bottom: 20px;
    }

    .info-content {
        gap: 16px;
    }

    .product-list {
        padding: 20px 10px;
        gap: 12px;
    }

    .product-card {
        max-width: 220px;
        min-width: 200px;
    }

    .product-info {
        padding: 12px;
    }
}

/* ============================================
   PRODUCT DETAIL PAGE STYLES
   ============================================ */

.product-detail-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    background: white;
    width: 100%;
}

/* Product Hero Section */
.product-hero {
    width: 100%;
    padding: 20px 20px 60px;
    background: transparent;
}

.product-hero-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: flex-start;
    background: transparent;
}

.product-image-main {
    flex: 1;
    max-width: 615px;
    min-width: 300px;
}

.product-image-main img {
    width: 100%;
    height: auto;
    border-radius: 21px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.product-info-main {
    flex: 1;
    max-width: 528px;
    min-width: 300px;
    /* display: flex; */
    flex-direction: column;
    gap: 40px;
}

.product-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-align: left;
    color: #962148;
    margin: 0;
}

.product-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 3.5vw, 32px);
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: black;
}

.product-actions {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 36px;
    color: black;
}

.qty-btn {
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    transition: color 0.3s ease;
}

.qty-btn:hover {
    color: #f392b1;
}

.qty-value {
    min-width: 40px;
    text-align: center;
}

.add-to-cart-btn {
    background: #f392b1;
    color: white;
    border: none;
    border-radius: 14px;
    padding: 12px 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(18px, 2vw, 24px);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 232px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart-btn:hover {
    background: #962148;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 146, 177, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.product-gift-info {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(16px, 2vw, 15px);
    line-height: 1.5;
    letter-spacing: 0.02em;
    margin-top: 20px;
    color: #f392b1;
    border-style: dashed;
    border-width: 1px;
    border-radius: 8px;
    background-color: #fcf6fa;
    box-shadow: 0px 0px 12px;

    display: flex;
    gap: auto;
    padding: 10px 10px;
    align-items: start;
}

.product-gift-info img {
    height: 30vh;
    width: 20vh;
    border-radius: 5px;
}

.product-gift-info p {
    margin-left: 10px;
    margin-bottom: 5px;
    margin-top: 5px;
    margin-right: 5px;
}

/* Product Description Section */
.product-description {
    width: 100%;
    padding: 40px 20px;
    background: transparent;
}

.product-description-content {
    max-width: 1196px;
    margin: 0 auto 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
    letter-spacing: 0.02em;
    color: black;
}

.product-description-content p {
    margin: 0;
}

.product-description-content strong {
    font-weight: 700;
}

/* Product Gallery */
.product-gallery {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

/* Logo link styling */
.nav-bar .logo {
    display: block;
    text-decoration: none;
}

/* Responsive styles for product detail page */
@media (max-width: 1024px) {
    .product-hero {
        padding: 20px 20px 40px;
    }

    .product-hero-content {
        flex-direction: column;
        gap: 40px;
    }

    .product-image-main,
    .product-info-main {
        max-width: 100%;
    }

    .product-actions {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .product-hero {
        padding: 20px 15px 30px;
    }

    .product-hero-content {
        gap: 30px;
    }

    .product-info-main {
        gap: 24px;
    }

    .quantity-selector {
        font-size: 28px;
        gap: 20px;
    }

    .qty-btn {
        font-size: 28px;
        width: 32px;
        height: 32px;
    }

    .add-to-cart-btn {
        width: 100%;
        min-width: auto;
    }

    .product-description {
        padding: 30px 15px;
    }

    .product-gallery {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .product-hero {
        padding: 20px 10px 20px;
    }

    .product-info-main {
        gap: 20px;
    }

    .product-actions {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .quantity-selector {
        font-size: 24px;
        gap: 15px;
        width: 100%;
        justify-content: center;
    }

    .qty-btn {
        font-size: 24px;
    }

    .product-description {
        padding: 20px 10px;
    }

    .product-gallery {
        gap: 15px;
    }
}

/* ============================================
   PAYMENT PAGE STYLES
   ============================================ */

.payment-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    background: white;
    width: 100%;
}

/* Section Title */
.section-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    color: #962148;
    margin: 0 0 24px;
}

/* Cart Section */
.cart-section {
    width: 100%;
    padding: 36px 36px 40px;
    background: white;
}

.cart-header {
    display: flex;
    justify-content: flex-end;
    gap: 200px;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.cart-header-item {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 2vw, 20px);
    color: black;
}

.cart-item {
    display: grid;
    grid-template-columns: 186px 1fr auto auto auto;
    gap: 35px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.cart-item-image {
    width: 186px;
    height: 186px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: clamp(14px, 1.5vw, 16px);
    color: #962148;
    line-height: 1.4;
    max-width: 287px;
}

.cart-item-option {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: clamp(14px, 1.5vw, 16px);
    color: black;
    line-height: 1.4;
    max-width: 287px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: clamp(20px, 2.5vw, 24px);
    color: black;
}

.cart-item-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: clamp(20px, 2.5vw, 24px);
    color: black;
    min-width: 120px;
}

.cart-item-delete {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.cart-item-delete:hover {
    opacity: 0.7;
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid #ddd;
}

.cart-summary-row {
    display: flex;
    justify-content: flex-end;
    gap: 200px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(20px, 2.5vw, 24px);
    color: black;
}

.cart-total {
    font-weight: 700;
    color: #962148;
}

/* Form Section */
.form-section {
    width: 100%;
    padding: 40px 97px;
    background: white;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 100%;
}

.form-input {
    width: 100%;
    height: 47px;
    padding: 9px 16px;
    border: 1px solid #f392b1;
    border-radius: 1px;
    background: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: black;
    transition: border-color 0.3s ease;
}

.form-input::placeholder {
    color: #f392b1;
}

.form-input:focus {
    outline: none;
    border-color: #962148;
}

/* Payment Section */
.payment-section {
    width: 100%;
    padding: 40px 98px;
    background: white;
    display: flex;
    gap: 45px;
    align-items: flex-start;
}

.payment-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.qr-code {
    width: 282px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.bank-info {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.5;
    text-align: center;
    color: black;
}

.bank-info p {
    margin: 0;
}

.payment-instructions {
    flex: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 1.5;
    color: black;
    max-width: 765px;
}

.payment-instructions p {
    margin: 0;
}

.payment-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 140px;
}

.upload-btn {
    background: #f392b1;
    color: white;
    padding: 16px 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(18px, 2vw, 24px);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: block;
    width: 395px;
}

.upload-btn:hover {
    background: #962148;
}

.complete-btn {
    background: #9b9b9b;
    color: white;
    padding: 16px 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(18px, 2vw, 24px);
    text-align: center;
    cursor: not-allowed;
    border: none;
    width: 264px;
    transition: all 0.3s ease;
}

.complete-btn:not(:disabled) {
    cursor: pointer;
}

.complete-btn:not(:disabled):hover {
    background: #962148;
}

/* Responsive styles for payment page */
@media (max-width: 1024px) {
    .cart-section {
        padding: 20px 20px 30px;
    }

    .cart-header {
        gap: 100px;
    }

    .cart-item {
        grid-template-columns: 150px 1fr auto auto auto;
        gap: 20px;
    }

    .cart-item-image {
        width: 150px;
        height: 150px;
    }

    .cart-summary-row {
        gap: 100px;
    }

    .form-section {
        padding: 30px 50px;
    }

    .payment-section {
        flex-direction: column;
        padding: 30px 50px;
        align-items: center;
    }

    .payment-actions {
        margin-top: 30px;
        width: 100%;
    }

    .upload-btn,
    .complete-btn {
        width: 100%;
        max-width: 395px;
    }
}

@media (max-width: 768px) {
    .cart-section {
        padding: 20px 15px 20px;
    }

    .cart-header {
        gap: 50px;
        font-size: 14px;
    }

    .cart-item {
        grid-template-columns: 100px 1fr;
        gap: 15px;
    }

    .cart-item-image {
        width: 100px;
        height: 100px;
        grid-row: 1 / 3;
    }

    .cart-item-name {
        grid-column: 2;
        max-width: 100%;
    }

    .cart-item-quantity {
        grid-column: 2;
        gap: 15px;
    }

    .cart-item-price {
        grid-column: 2;
        justify-self: end;
    }

    .cart-item-delete {
        grid-column: 2;
        justify-self: end;
    }

    .cart-summary-row {
        gap: 50px;
    }

    .form-section {
        padding: 20px 15px;
    }

    .payment-form {
        gap: 20px;
    }

    .payment-section {
        padding: 20px 15px;
    }

    .qr-code {
        width: 220px;
        height: auto;
    }

    .payment-actions {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .cart-section {
        padding: 10px 10px 15px;
    }

    .cart-header {
        display: none;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 10px;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-quantity {
        font-size: 18px;
        gap: 10px;
    }

    .form-section {
        padding: 15px 10px;
    }

    .payment-section {
        padding: 15px 10px;
    }

    .qr-code {
        width: 180px;
    }
}

/* ============================================
   THANK YOU PAGE STYLES
   ============================================ */

.thankyou-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    background: white;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f7eef4;
}

/* Order Information Section */
.order-info-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.order-info-container {
    background: white;
    border-radius: 21px;
    box-shadow: 0px 4px 21.6px 7px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    padding: 25px 30px;
    width: 100%;
    max-width: 824px;
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.order-info-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
    text-align: center;
    color: black;
    letter-spacing: 0.64px;
    margin: 0;
}

.delivery-info {
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1;
    color: black;
    letter-spacing: 0.4px;
    text-align: justify;
}

.delivery-label {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 8px;
}

.delivery-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.delivery-contact {
    font-weight: 300;
    margin-bottom: 4px;
}

.delivery-address {
    font-weight: 500;
    margin: 0;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.item-image {
    width: 113px;
    height: 113px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

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

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 641px;
}

.item-option-quantity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.item-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 2vw, 20px);
    line-height: 1.4;
    color: black;
    letter-spacing: 0.4px;
    margin: 0;
    text-align: justify;
}

.item-option {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 2vw, 18px);
    line-height: 1.4;
    color: black;
    margin: 0;
}

.item-quantity {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 2vw, 18px);
    line-height: 1.4;
    color: black;
    margin: 0;
}

.contact-info {
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    font-size: clamp(10px, 2vw, 15px);
    line-height: 1.2;
    text-align: center;
    color: black;
    letter-spacing: 0.64px;
    margin: 0;
}

.contact-info p span a {
    color: #962148;
    font-weight: 700;
}

/* Thank You Content */
.thankyou-content {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 120px 50px 60px;
    display: flex;
    flex-direction: column;
    gap: 52px;
    align-items: center;
    flex: 1;
}

.thankyou-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    color: #962148;
    margin: 0;
    width: 100%;
}

.thankyou-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    color: black;
    margin: 0;
    width: 100%;
}

.thankyou-list {
    text-align: center;
    max-width: 800px;
}

.thankyou-list p {
    margin: 0 0 12px 0;
}

.thankyou-list p:first-child {
    font-weight: 700;
    margin-bottom: 16px;
}

.guide-button {
    background: #f392b1;
    color: white;
    padding: 24px 48px;
    border-radius: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(18px, 2.5vw, 24px);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    max-width: 602px;
    width: 100%;
    line-height: 1.3;
}

.guide-button:hover {
    background: #962148;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(243, 146, 177, 0.4);
}

.guide-button:active {
    transform: translateY(0);
}

/* Responsive styles for thank you page */
@media (max-width: 1024px) {
    .thankyou-content {
        padding: 100px 40px 50px;
        gap: 40px;
    }

    .order-info-section {
        padding: 0 10px;
    }

    .order-info-container {
        padding: 20px 25px;
        gap: 25px;
    }

    .order-item {
        gap: 15px;
    }

    .item-image {
        width: 100px;
        height: 100px;
    }

    .item-details {
        max-width: 550px;
    }
}

@media (max-width: 768px) {
    .thankyou-content {
        padding: 80px 30px 40px;
        gap: 32px;
    }

    .order-info-section {
        padding: 0 5px;
    }

    .order-info-container {
        padding: 18px 20px;
        gap: 20px;
        max-width: 100%;
    }

    .order-item {
        gap: 12px;
        /* flex-direction: column; */
    }

    .item-image {
        width: 80px;
        height: 80px;
        align-self: center;
    }

    .item-details {
        max-width: 100%;
        text-align: center;
    }

    .item-name {
        /* text-align: center; */
    }

  
    .delivery-info {
        /* text-align: center;
        align-items: center; */
    }

    .thankyou-list {
        text-align: center;
    }

    .guide-button {
        padding: 20px 32px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .thankyou-content {
        padding: 70px 20px 30px;
        gap: 24px;
    }

    .order-info-container {
        padding: 15px 18px;
        gap: 18px;
    }

    .order-info-title {
        font-size: 20px;
    }

    .delivery-info {
        font-size: 14px;
    }

    .item-image {
        width: 70px;
        height: 70px;
    }

    .item-name {
        font-size: 12px;
    }

    .item-option {
        font-size: 12px;
    }

    .item-quantity {
        font-size: 12px;
    }

    .guide-button {
        padding: 16px 24px;
    }
}

/* Login Panel Styles */
.login-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 100px 20px 50px;
}

.login-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 48px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.login-panel h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 36px);
    color: #962148;
    text-align: center;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.login-button {
    background: #f392b1;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.login-button:hover {
    background: #962148;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(243, 146, 177, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-align: center;
    border: 1px solid #ef9a9a;
}

@media (max-width: 768px) {
    .login-panel {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 80px 15px 40px;
    }

    .login-panel {
        padding: 24px 20px;
    }

    .login-panel h1 {
        margin-bottom: 24px;
    }
}

/* Admin Dashboard Styles */
.dashboard-container {
    min-height: 100vh;
    background: #f5f5f5;
    font-family: 'Montserrat', sans-serif;
}

.dashboard-header {
    background: #962148;
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-header h1 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    margin: 0;
}

.logout-button {
    background: white;
    color: #962148;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.logout-button:hover {
    background: #f392b1;
    color: white;
}

.filter-section {
    padding: 24px 40px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-section form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-section label {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.gift-display {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: white;
    transition: border-color 0.3s ease;
}

#status-filter {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: white;
    transition: border-color 0.3s ease;
}

#status-filter:hover {
    border-color: #f392b1;
}

#status-filter:focus {
    outline: none;
    border-color: #962148;
}

.order-count {
    font-weight: 600;
    font-size: 16px;
    color: #962148;
}

.table-container {
    padding: 24px 40px;
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-collapse: collapse;
    overflow: hidden;
}

.orders-table thead {
    background: #962148;
    color: white;
}

.orders-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.orders-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}

.orders-table tbody tr:hover {
    background: #fafafa;
}

.orders-table tbody tr:last-child td {
    border-bottom: none;
}

.location-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.receipt-button,
.cart-button {
    background: #f392b1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.receipt-button:hover,
.cart-button:hover {
    background: #962148;
    transform: translateY(-1px);
}

.status-dropdown {
    padding: 6px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: white;
    transition: border-color 0.3s ease;
}

.status-dropdown:hover {
    border-color: #f392b1;
}

.status-dropdown:focus {
    outline: none;
    border-color: #962148;
}

.status-dropdown option[value="New"] {
    color: #2196F3;
}

.status-dropdown option[value="Done"] {
    color: #4CAF50;
}

.status-dropdown option[value="Cancel"] {
    color: #F44336;
}

.no-orders {
    text-align: center;
    padding: 40px !important;
    color: #999;
    font-style: italic;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cart-modal-content {
    max-width: 600px;
}

.modal-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #962148;
    margin-bottom: 20px;
}

.close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #962148;
}

.modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.cart-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.cart-details-table thead {
    background: #f5f5f5;
}

.cart-details-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.cart-details-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    word-break: break-word;
}

.cart-details-table tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive Dashboard Styles */
@media (max-width: 1024px) {
    .dashboard-header {
        padding: 16px 24px;
    }

    .filter-section {
        padding: 20px 24px;
    }

    .table-container {
        padding: 20px 24px;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 16px;
        padding: 16px 20px;
    }

    .filter-section {
        flex-direction: column;
        gap: 16px;
        padding: 16px 20px;
        align-items: flex-start;
    }

    .table-container {
        padding: 16px 20px;
    }

    .orders-table {
        font-size: 12px;
    }

    .orders-table th,
    .orders-table td {
        padding: 10px 8px;
    }

    .location-cell {
        max-width: 120px;
    }

    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .dashboard-header h1 {
        font-size: 20px;
    }

    .logout-button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .orders-table {
        font-size: 11px;
    }

    .receipt-button,
    .cart-button {
        padding: 6px 12px;
        font-size: 11px;
    }

    .status-dropdown {
        padding: 4px 8px;
        font-size: 11px;
    }
}
