/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #c9a961;
    --text-color: #2d2d2d;
    --light-bg: #f5f5f7;
    --white: #ffffff;
    --grey: #6c757d;
    --light-grey: #e8e8ea;
    --border-color: #d1d1d6;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

/* ===== HEADER ===== */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
}

.logo-text {
    font-size: 32px;
    font-weight: 300;
    color: var(--primary-color);
    letter-spacing: 3px;
    text-transform: none;
    font-family: 'Georgia', 'Times New Roman', serif;
    transition: var(--transition);
    display: inline-block;
    font-style: italic;
}

.logo-text:hover {
    color: var(--accent-color);
    transform: scale(1.02);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--light-bg);
    border-radius: 25px;
    padding: 5px 15px;
    transition: var(--transition);
}

.search-bar:focus-within {
    box-shadow: var(--shadow);
}

.search-bar input {
    border: none;
    background: transparent;
    padding: 5px 10px;
    outline: none;
    width: 200px;
}

.search-bar button {
    background: transparent;
    font-size: 18px;
    padding: 5px;
}

.cart-icon {
    position: relative;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.mobile-menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 10;
    width: 100%;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--text-color);
    font-size: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CATEGORIES SECTION ===== */
.categories {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.categories h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.category-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.category-card h3 {
    text-align: center;
    padding: 20px;
    font-size: 20px;
    color: var(--primary-color);
}

/* ===== PRODUCTS SECTION ===== */
.products {
    padding: 80px 0;
}

.products h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background-color: var(--light-bg);
    color: var(--text-color);
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 16px;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--grey);
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-description {
    font-size: 14px;
    color: var(--grey);
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.add-to-cart-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail {
    padding: 80px 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 30px;
    transition: var(--transition);
}

.back-link:hover {
    transform: translateX(-5px);
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-images {
    display: flex;
    gap: 15px;
}

.thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-details h1 {
    font-size: 32px;
    color: var(--text-color);
}

.product-details .product-price {
    font-size: 36px;
}

.product-details .product-description {
    font-size: 16px;
    line-height: 1.8;
}

.product-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--white);
    transition: var(--transition);
}

.option-btn:hover,
.option-btn.selected {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--white);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    padding: 10px 15px;
    background-color: var(--light-bg);
    font-size: 20px;
    transition: var(--transition);
}

.quantity-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: none;
    padding: 10px;
    font-size: 16px;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.product-actions .cta-button {
    flex: 1;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.about h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image img {
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 80px 0;
}

.contact h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-item p {
    font-size: 18px;
    line-height: 1.6;
}

.contact-item a {
    color: var(--text-color);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* ===== CHECKOUT PAGE ===== */
.checkout {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.checkout h1 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.checkout-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.checkout-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.checkout-form h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.payment-method {
    margin-top: 30px;
}

.payment-method h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:hover {
    border-color: var(--primary-color);
    background-color: var(--light-bg);
}

.payment-option input[type="radio"] {
    margin-top: 5px;
}

.payment-option label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.payment-option label span {
    font-size: 14px;
    color: var(--grey);
    font-weight: normal;
}

.order-summary {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.order-summary h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.order-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.order-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-details {
    flex: 1;
}

.order-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.order-item-meta {
    font-size: 14px;
    color: var(--grey);
}

.order-item-price {
    font-weight: 700;
    color: var(--primary-color);
}

.order-totals {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 18px;
}

.grand-total {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
}

/* ===== POLICY SECTION ===== */
.policy {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.policy h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.policy-content h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.policy-content h3:first-of-type {
    margin-top: 0;
}

.policy-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-color);
}

.policy-content ul {
    margin-left: 30px;
    margin-bottom: 15px;
}

.policy-content ul li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: var(--text-color);
}

.policy-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.policy-highlight {
    background-color: var(--light-bg);
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    margin: 20px 0;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    font-size: 28px;
    transition: var(--transition);
}

.social-icons a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.success-modal {
    text-align: center;
}

.success-modal h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.success-modal p {
    margin-bottom: 15px;
    font-size: 16px;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: var(--grey);
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--text-color);
}

.cart-total {
    margin: 30px 0;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 10px;
    text-align: center;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-meta {
    font-size: 14px;
    color: var(--grey);
    margin-bottom: 5px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
}

.remove-item {
    background-color: #dc3545;
    color: var(--white);
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 14px;
    transition: var(--transition);
}

.remove-item:hover {
    background-color: #c82333;
}

.empty-cart {
    text-align: center;
    padding: 40px;
    color: var(--grey);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .header-content {
        flex-wrap: wrap;
    }

    .nav-menu {
        display: none;
        width: 100%;
        order: 4;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .product-detail-content,
    .about-content,
    .contact-content,
    .checkout-content {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .search-bar input {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 22px;
        letter-spacing: 0.8px;
    }

    .hero {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .categories h2,
    .products h2,
    .about h2,
    .contact h2 {
        font-size: 28px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .checkout-form,
    .order-summary,
    .contact-form {
        padding: 20px;
    }

    .header-actions {
        gap: 10px;
    }

    .search-bar {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo-text {
        font-size: 18px;
        letter-spacing: 0.5px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .product-price {
        font-size: 20px;
    }

    .modal-content {
        padding: 20px;
        width: 95%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

