/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: #3d3d3d;
    line-height: 1.6;
    background-color: #fdf9f3;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #2c2c2c;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Navigation ===== */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #c47f3d;
}

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

.nav-links a {
    font-weight: 400;
    color: #3d3d3d;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #c47f3d;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #c47f3d;
}

.cart-icon {
    font-size: 1.3rem;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-icon span {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #c47f3d;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 30px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #c47f3d;
    color: #fff;
}

.btn-primary:hover {
    background-color: #a8662f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196, 127, 61, 0.3);
}

.btn-secondary {
    background-color: #e8e0d5;
    color: #3d3d3d;
    margin-left: 0.5rem;
}

.btn-secondary:hover {
    background-color: #d5c9b8;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('https://images.unsplash.com/photo-1603006905003-be475563bc59?w=1600&auto=format&fit=crop') center/cover;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content {
    max-width: 700px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* ===== Featured / Shop Sections ===== */
.featured,
.shop-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.featured h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c2c2c;
}

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

.product-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #c47f3d;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-info p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #c47f3d;
    margin-bottom: 1rem;
}

.product-mrp {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 0.4rem;
}

.add-to-cart {
    width: 100%;
    padding: 0.7rem;
    background-color: #2c2c2c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #c47f3d;
}

/* ===== Product Card Links ===== */
.product-image-link {
    display: block;
    overflow: hidden;
}

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

.product-image {
    transition: transform 0.4s ease;
}

.product-name-link h3 {
    transition: color 0.3s;
}

.product-name-link:hover h3 {
    color: #c47f3d;
}

.view-details {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #c47f3d;
    transition: color 0.3s;
}

.view-details:hover {
    color: #a8662f;
    text-decoration: underline;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem 0;
    font-size: 0.9rem;
    color: #888;
}

.breadcrumb a {
    color: #888;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #c47f3d;
}

.breadcrumb span {
    color: #2c2c2c;
    font-weight: 700;
}

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

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

.product-detail-image {
    position: sticky;
    top: 90px;
}

.product-image-large {
    height: 450px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.product-detail-info h1 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.product-detail-desc {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

.product-detail-price {
    font-size: 1.9rem;
    margin-bottom: 1.5rem;
}

.product-buy-box {
    margin-bottom: 1.5rem;
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 8px;
}

.qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background-color: #f5ede2;
    border-radius: 8px;
    padding: 0.6rem;
}

.qty-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background-color: #fff;
    color: #c47f3d;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.qty-btn:hover {
    background-color: #c47f3d;
    color: #fff;
    transform: scale(1.08);
}

.qty-value {
    font-size: 1.2rem;
    font-weight: 700;
    min-width: 32px;
    text-align: center;
}

.qty-in-cart {
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ===== Product Specs ===== */
.specs-block {
    border-top: 2px solid #f5ede2;
    padding-top: 1.5rem;
}

.spec-heading {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.spec-block {
    margin-bottom: 1.1rem;
}

.spec-label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.4rem;
}

.spec-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.spec-chip {
    background-color: #f5ede2;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #5a4632;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #e5dccb;
    font-size: 0.95rem;
}

.spec-row span {
    color: #777;
}

.spec-row strong {
    color: #2c2c2c;
}

.product-note {
    background-color: #fdf6ec;
    border-left: 4px solid #c47f3d;
    padding: 0.8rem 1rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: #7a5c3f;
}

.include-section {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-top: 2.5rem;
}

.include-item {
    padding: 1.2rem;
    border: 1px solid #f0ece6;
    border-radius: 10px;
    margin-bottom: 1rem;
    background-color: #fdf9f3;
}

.include-item:last-child {
    margin-bottom: 0;
}

.include-item h4 {
    font-family: 'Lato', sans-serif;
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    color: #2c2c2c;
}

.secure-note {
    font-size: 0.85rem;
    color: #777;
    margin-top: 1.5rem;
}

.detail-actions {
    text-align: center;
    margin-top: 2.5rem;
}

/* ===== About Section ===== */
.about {
    background-color: #f5ede2;
    padding: 4rem 2rem;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #555;
}

/* ===== Page Header ===== */
.page-header {
    background-color: #f5ede2;
    text-align: center;
    padding: 4rem 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Contact Section ===== */
.contact-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info h2,
.contact-form h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    font-size: 1.5rem;
    background-color: #f5ede2;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.info-item p {
    color: #666;
    font-size: 0.95rem;
}

.contact-form {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c47f3d;
}

.form-success {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #e8f5e9;
    border-radius: 8px;
    color: #2e7d32;
    font-weight: 700;
}

/* ===== Cart Modal ===== */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.cart-modal.active {
    display: flex;
}

.cart-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cart-content h2 {
    margin-bottom: 1.5rem;
}

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

.cart-item-info h4 {
    font-size: 1rem;
}

.cart-item-info p {
    color: #777;
    font-size: 0.85rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-actions button {
    background-color: #f5ede2;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.3s;
}

.cart-item-actions button:hover {
    background-color: #e0d5c5;
}

.cart-item-actions .remove-btn {
    background-color: #ffebee;
    color: #c62828;
}

.cart-item-actions .remove-btn:hover {
    background-color: #ffcdd2;
}

.cart-total {
    text-align: right;
    margin: 1.5rem 0;
    font-size: 1.2rem;
}

.cart-empty {
    text-align: center;
    color: #777;
    padding: 2rem 0;
}

/* ===== Checkout Section ===== */
.checkout-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.checkout-summary {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.checkout-summary h2,
.checkout-form h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f5ede2;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0ece6;
}

.checkout-item-info h4 {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
}

.checkout-item-info p {
    color: #999;
    font-size: 0.85rem;
}

.checkout-item-price {
    font-weight: 700;
    color: #c47f3d;
}

.checkout-totals {
    margin-top: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: #555;
}

.total-row.total-grand {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c2c2c;
    border-top: 2px solid #f5ede2;
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.checkout-form {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.payment-header {
    margin-top: 2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #f5ede2;
}

.payment-methods {
    margin: 1rem 0;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: border-color 0.3s;
}

.payment-method.selected {
    border-color: #c47f3d;
    background-color: #fdf9f3;
}

.payment-method input {
    accent-color: #c47f3d;
}

.payment-method label {
    cursor: pointer;
    font-weight: 700;
}

.payment-note {
    background-color: #fdf6ec;
    border-left: 4px solid #c47f3d;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
}

.payment-note p {
    font-size: 0.9rem;
    color: #7a5c3f;
}

.payment-pending {
    background-color: #fff8e1;
    border: 1px solid #ffe082;
    color: #8d6e63;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.btn-pay {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    background-color: #1a73e8;
}

.btn-pay:hover {
    background-color: #1557b0;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.form-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 700;
}

/* ===== Success Modal ===== */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.success-modal.active {
    display: flex;
}

.success-content {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.success-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2e7d32;
}

.success-content p {
    color: #555;
    margin-bottom: 1rem;
}

.success-details {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
    margin-bottom: 1rem;
}

.success-details p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.success-note {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}

.success-content .btn {
    margin: 0.5rem 0.25rem;
}

/* ===== Footer ===== */
.footer {
    background-color: #2c2c2c;
    color: #ccc;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #c47f3d;
}

.footer-bottom {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

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

    .contact-container,
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-detail-image {
        position: static;
    }

    .product-image-large {
        height: 320px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .checkout-form {
        padding: 1.5rem;
    }

    .success-content {
        padding: 1.5rem;
    }
}
