* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple-dark: #5B4B8A;
    --purple-medium: #7B5FA0;
    --purple-light: #9B7FB8;
    --purple-bg: linear-gradient(180deg, #5B4B8A 0%, #7B5FA0 50%, #9B7FB8 100%);
    --card-bg: #F5F3F7;
    --white: #FFFFFF;
    --text-dark: #2D2D2D;
    --text-gray: #6B6B6B;
    --text-light: #9E9E9E;
    --orange: #FFA726;
    --yellow: #FFD54F;
    --red: #EF5350;
    --green: #66BB6A;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--purple-bg);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-dark);
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 32px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--purple-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.tagline {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 500;
}

.drops-badge {
    background: var(--purple-dark);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Hero Carousel */
.hero-carousel {
    background: var(--purple-dark);
    border-radius: 24px;
    padding: 24px 24px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.carousel-slide.active {
    display: flex;
}

.product-image-large {
    width: 100%;
    /* max-width: 200px; */
    aspect-ratio: 7/3;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-indicator {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: 14px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.product-label-carousel {
    background: var(--text-dark);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.product-price-carousel {
    background: var(--text-dark);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.carousel-btn.prev {
    left: 16px;
}

.carousel-btn.next {
    right: 16px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 3px solid #2D2D2D;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Badge */
.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    text-transform: capitalize;
}

.badge-limited {
    background: #E6AB00;
    color: var(--white);
}

.badge-hot {
    background: #E6AB00;
    color: var(--white);
}

.badge-new {
    background: var(--yellow);
    color: var(--text-dark);
}

.product-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/5;
    background: #F0F0F0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image .phone {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(3.5); /* Adjust 1.5 to zoom more/less */
}

.product-image .mac {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.75); /* Adjust 2.5 to zoom more/less */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.5); /* Adjust 1.5 to zoom more/less */
}

.product-detail-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

@media (max-width: 768px) {
    .product-detail-info {
        flex-direction: column;
    }
    
    .price-section-detail {
        width: 100%;
        text-align: left;
    }
}

.product-detail-info > div:first-child {
    flex: 1;
}

.price-section-detail {
    flex-shrink: 0;
    text-align: right;
}

#secureCheckout {
    color:#9E9E9E;
    margin-bottom: 8px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

/* Product Info */
.product-info {
    height: 200px;
    padding: 16px;
    background:#E6AB00;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-description {
    font-size: 13px;
    color: #5D4E37;
    margin-bottom: 12px;
    line-height: 1.4;
    flex-grow: 1;
}

.price-section {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.price-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--purple-dark);
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
}

.price-original {
    font-size: 16px;
    font-weight: 500;
    color: rgba(93, 78, 55, 0.5);
    text-decoration: line-through;
    letter-spacing: -0.3px;
    font-variant-numeric: tabular-nums;
}

/* Buy Button */
.buy-button {
    width: 100%;
    background: var(--purple-dark);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s, transform 0.2s;
}

.buy-button:hover {
    background: #4A3B6E;
    transform: scale(1.02);
}

.buy-button:active {
    transform: scale(0.98);
}

.buy-button-carousel {
    width: 100%;
    background: var(--purple-dark);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s, transform 0.2s;
}

.buy-button-carousel:hover {
    background: #4A3B6E;
    transform: scale(1.02);
}

.wallet-icon {
    width: 18px;
    height: 18px;
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 12px;
    }
    
    .container {
        padding: 16px;
        border-radius: 24px;
    }
    
    .product-grid {
        gap: 12px;
    }
    
    .brand-name {
        font-size: 12px;
    }
    
    .tagline {
        font-size: 10px;
    }
    
    .drops-badge {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .product-title {
        font-size: 12px;
    }
    
    .product-description {
        font-size: 11px;
    }
    
    .price-current {
        font-size: 15px;
    }
    
    .buy-button {
        font-size: 12px;
        padding: 10px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 700px;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Back Button */
.back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--purple-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.back-btn:hover {
    color: var(--purple-medium);
}

.back-btn svg {
    width: 20px;
    height: 20px;
}

/* Product Detail Styles */
.product-detail {
    margin-bottom: 32px;
    position: relative;
}

.detail-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

.product-gallery {
    margin-bottom: 24px;
}

.main-image {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-list {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.thumbnail {
    width: 70px;
    height: 88px;
    border-radius: 12px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s, transform 0.3s;
    object-fit: cover;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--purple-dark);
}

.product-detail-info {
    padding: 0 4px;
}

.detail-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
}

.detail-description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* #securecheckDiv {
    color:#9E9E9E;
} */

.price-section-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    /* margin-bottom: 12px; */
    flex-wrap: wrap;
}

.price-current-detail {
    font-size: 20px;
    font-weight: 800;
    color: var(--purple-dark);
}

.price-original-detail {
    font-size: 18px;
    color: var(--text-light);
    text-decoration: line-through;
}

.discount-badge {
    background: var(--red);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
}

/* Features List */
.features-list {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.features-list h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.features-list ul {
    list-style: none;
    padding: 0;
}

.features-list li {
    font-size: 14px;
    color: var(--text-gray);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.features-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: bold;
}

/* Color Selector */
.color-selector {
    margin-bottom: 24px;
}

.color-selector h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.color-options {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.color-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s, transform 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: var(--purple-dark);
}

.selected-color {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 600;
}

/* Storage Selector */
.storage-selector {
    margin-bottom: 32px;
}

.storage-selector h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.storage-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.storage-btn {
    padding: 12px 8px;
    border: 2px solid #E0E0E0;
    background: var(--white);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
}

.storage-btn:hover {
    border-color: var(--purple-light);
}

.storage-btn.active {
    border-color: var(--purple-dark);
    background: var(--purple-dark);
    color: var(--white);
}

/* Order Form Styles */
.order-form {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 20px;
    margin-bottom: 22px;
}

.form-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-align: center;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    height: 170px;
    padding: 14px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple-dark);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-order-btn {
    width: 100%;
    background: var(--purple-dark);
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s, transform 0.2s;
    margin-top: 24px;
}

.face-id-btn {
    width: 60%;
    background: var(--purple-dark);
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s, transform 0.2s;
    margin-top: 24px;
    margin-left: auto;  /* Add this */
    margin-right: auto; /* Add this */
}

.face-id-btn:disabled {
    background: #E0E0E0;
    color: #9E9E9E;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.submit-order-btn:hover {
    background: #4A3B6E;
    transform: scale(1.02);
}

.submit-order-btn:active {
    transform: scale(0.98);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 32px 16px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 20px;
}

.success-message h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.success-message p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 24px;
}

.btn-back-home {
    background: var(--purple-dark);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-back-home:hover {
    background: #4A3B6E;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }
.product-card:nth-child(9) { animation-delay: 0.45s; }
.product-card:nth-child(10) { animation-delay: 0.5s; }