* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --accent: #4ade80;
    --bg: #0a0a0a;
    --text: #ffffff;
    --text-muted: #a1a1aa;
    --border: #27272a;
    --card-bg: #18181b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.announcement {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cart-icon a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

/* Main Header */
.main-header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: block;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.footer-logo {
    height: 54px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    background-image: url('ProductImages/backgroundImage.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: white;
    padding: 4rem 2rem;
    overflow: hidden;
    position: relative;
}

.hero-section .hero-grid {
    position: relative;
    z-index: 1;
}

.hero-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.fancy-script {
    font-family: 'Runethia', 'Dancing Script', cursive !important;
    font-size: 1.3em;
    font-style: normal;
    letter-spacing: -2.3px;
}

.hero-tagline {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: #0a0a0a;
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Hero Image Stack */
.hero-image-stack {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow: visible;
}

.hero-main-image {
    width: 50vw;
    max-width: none;
    height: auto;
    display: block;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    transform: translateX(-10%);
}

@media (max-width: 968px) {
    .hero-image-stack {
        margin-top: 1rem;
        justify-content: center;
    }
    
    .hero-main-image {
        width: 90%;
        transform: translateX(0);
    }
}

.hero-products {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.mini-product {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    min-width: 120px;
}

.mini-img {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.mini-product p {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.mini-price {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Card Carousel */
.card-carousel {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.carousel-slide a {
    display: block;
    transition: transform 0.3s;
}

.carousel-slide a:hover {
    transform: scale(1.05);
}

.carousel-slide img {
    width: 280px;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
    border: 2px solid var(--primary);
}

.carousel-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--primary-dark);
}

@media (max-width: 768px) {
    .carousel-slide img {
        width: 200px;
        height: 130px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Bestsellers Section */
.bestsellers {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.view-all:hover {
    text-decoration: underline;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.2);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.product-image {
    padding: 1rem;
    text-align: center;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.product-image-link {
    display: block;
    width: 100%;
}

.product-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.mini-img-img {
    width: 80px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.product-info h3 a {
    color: var(--text);
    text-decoration: none;
}

.product-info h3 a:hover {
    color: var(--primary);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.rating {
    color: #f59e0b;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.price {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.price .amount {
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
}

.add-to-cart {
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
    display: block;
    text-align: center;
    text-decoration: none;
}

.add-to-cart:hover {
    background-color: var(--primary-dark);
}

/* Cart Section */
.cart-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.cart-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.empty-cart {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
    font-style: italic;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
}

.remove-item {
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.remove-item:hover {
    background-color: #b91c1c;
}

.cart-total {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
}

.subtotal-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.promo-text {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--primary);
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid var(--primary);
}

.final-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#paypal-button-container {
    margin-top: 1rem;
}

/* Footer */
footer {
    background-color: var(--card-bg);
    color: var(--text);
    margin-top: 4rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Privacy Page */
.privacy-main {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.privacy-main h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.last-updated {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.privacy-section {
    margin-bottom: 2rem;
}

.privacy-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.privacy-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.privacy-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-tagline {
        margin: 0 auto 2rem;
    }

    .hero-products {
        justify-content: center;
    }

    .steps {
        flex-direction: column;
        gap: 2rem;
    }

    .main-header nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .top-bar {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-products {
        flex-direction: column;
        align-items: center;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Product Detail Page Styles */
.product-detail {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-images {
    position: sticky;
    top: 120px;
}

.main-image {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--border);
}

.main-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.image-thumbnails {
    display: flex;
    gap: 1rem;
}

.image-thumbnails .thumb {
    width: 80px;
    height: 60px;
    object-fit: contain;
    border: 2px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    padding: 0.5rem;
    background: #ffffff;
}

.image-thumbnails .thumb.active {
    border-color: var(--primary);
}

.image-thumbnails .thumb:hover {
    border-color: var(--primary);
}

.product-details h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.product-details .rating {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.product-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.product-meta {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.product-meta p {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.product-meta p:last-child {
    margin-bottom: 0;
}

.add-to-cart-detail {
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-to-cart-detail:hover {
    background-color: var(--primary-dark);
}

@media (max-width: 968px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-images {
        position: static;
    }

    .product-details h1 {
        font-size: 2rem;
    }
}

/* Customize Page */
.customize-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.customize-container h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-align: center;
}

.customize-intro {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.customize-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.preview-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bill-template {
    position: relative;
    width: 180px;
}

.template-img {
    width: 180px;
    height: auto;
    border-radius: 8px;
    display: block;
}

#preview-side-by-side {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#bill-preview {
    width: 120px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

#image-preview {
    width: 120px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.custom-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 2rem;
    border-radius: 8px;
}

.placeholder-text {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.customize-form {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}

.customize-form h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--primary);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.price-label {
    font-weight: 600;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.customize-btn {
    background-color: var(--primary);
    color: #0a0a0a;
}

.customize-btn:hover {
    background-color: var(--accent);
}

.customize-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

.required-note {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.upload-area {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: border-color 0.2s;
    background: var(--bg);
}

.upload-area:hover {
    border-color: var(--primary);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-align: center;
}

.upload-placeholder p {
    margin: 0;
    font-size: 0.95rem;
}

.upload-sub {
    font-size: 0.8rem !important;
    color: var(--text-muted);
}

.image-spec-box {
    margin-top: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
}

.image-spec-box h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.image-spec-box ul {
    padding-left: 1.2rem;
    margin: 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.image-spec-box li {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.image-spec-box li strong {
    color: var(--text);
}

.spec-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.spec-tip {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(34, 197, 94, 0.08);
    border-left: 3px solid var(--primary);
    padding: 0.6rem 0.8rem;
    border-radius: 0 6px 6px 0;
}

@media (max-width: 968px) {
    .customize-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .customize-container h1 {
        font-size: 2rem;
    }
}
