/* CSS RESET & VARIABLES */
:root {
    --primary-color: #1a1a1a;
    --bg-color: #ffffff;
    --bg-light: #f9f9f9;
    --text-color: #333333;
    --text-light: #666666;
    --accent-color: #a80000;
    /* Subtle oriental red */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Jost', sans-serif;
    --transition: all 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* UTILITIES */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.text-center {
    text-align: center;
}

.py-8 {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-outline {
    border: 1px solid #fff;
    color: #fff;
    background: transparent;
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-color);
}

/* ANNOUNCEMENT BAR */
.announcement-bar {
    background-color: #f4ecdf;
    text-align: center;
    padding: 8px 0;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--primary-color);
    text-transform: uppercase;
}

/* HEADER */
.header {
    position: absolute;
    top: 35px;
    /* below announcement */
    left: 0;
    width: 100%;
    z-index: 100;
    transition: background 0.3s ease, padding 0.3s ease;
}

.header.sticky {
    position: fixed;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.logo img {
    height: 60px;
    /* adjusted to display beautifully */
    width: auto;
    transition: var(--transition);
}

.header.sticky .logo img {
    height: 45px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.header .nav-link,
.header .cart-trigger,
.header .menu-toggle {
    color: #fff;
}

.header.sticky .nav-link,
.header.sticky .cart-trigger,
.header.sticky .menu-toggle {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header-icons {
    display: flex;
    gap: 20px;
    font-size: 1.1rem;
    align-items: center;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* HERO SECTION */
.hero-section {
    height: 100vh;
    min-height: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
}

.slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide.active {
    animation: kenburns 15s infinite alternate ease-in-out;
}

@keyframes kenburns {
    0% {
        background-size: 100%;
    }

    100% {
        background-size: 110%;
    }
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 20px;
}

.slide-content h2 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.5s forwards;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.7s forwards;
}

.slide-content .btn {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.9s forwards;
}

/* FEATURE COLLECTION */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    text-align: center;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    cursor: pointer;
    background-color: #ededed;
    aspect-ratio: 2/3;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 15px;
    transition: bottom 0.4s ease;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.product-card:hover .product-overlay {
    bottom: 0;
}

/* SPLIT SECTION */
.split-section {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--bg-light);
    padding: 0;
}

.split-image {
    flex: 1;
    min-width: 50%;
    min-height: 500px;
    background-size: cover;
    background-position: center;
}

.split-text {
    flex: 1;
    min-width: 50%;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.split-text h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* FOOTER */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding-top: 80px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: #888;
}

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* CART SIDEBAR */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #fff;
    z-index: 1001;
    transition: 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1rem;
    letter-spacing: 2px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.empty-cart-msg {
    text-align: center;
    color: #888;
    margin-top: 50px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    animation: slideInRight 0.4s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item-img {
    width: 80px;
    height: 100px;
    object-fit: cover;
}

.cart-item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.cart-item-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.remove-item {
    font-size: 0.75rem;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 5px;
    display: inline-block;
}

.cart-footer {
    padding: 30px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 20px;
}

/* MODAL STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    position: relative;
    transform: scale(0.9);
    transition: 0.5s ease;
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.modal-grid {
    display: flex;
    height: 100%;
}

.modal-image {
    flex: 1;
    background-size: cover;
    background-position: center;
}

.modal-text {
    flex: 1;
    padding: 60px;
    overflow-y: auto;
}

.modal-subtitle {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.modal-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.modal-scroll-area p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}

/* SUCCESS FEEDBACK */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.success-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-card {
    background: #fff;
    padding: 60px;
    border-radius: 5px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: translateY(30px);
    transition: 0.5s ease;
}

.success-overlay.active .success-card {
    transform: translateY(0);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #f0fdf4;
    color: #22c55e;
    font-size: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.success-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.success-card p {
    color: #666;
    margin-bottom: 40px;
}

/* LOADERS */
.btn-loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    display: none;
    animation: spin 0.8s linear infinite;
}

.order-btn.loading .btn-loader,
.newsletter-col button.loading .btn-loader {
    display: inline-block;
}

.order-btn.loading .btn-text,
.newsletter-col button.loading .btn-text {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* HEADER ICONS UPDATE */
.cart-trigger {
    cursor: pointer;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -12px;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* FOOTER UPDATE */
.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col {
    flex: 1;
    min-width: 300px;
}

.brand-col {
    max-width: 500px;
}

.footer-col h4 {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    display: inline-block;
    text-transform: uppercase;
}

.footer-col p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.8;
}

.footer-contact {
    margin-top: 30px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #bbb;
}

.footer-contact i {
    margin-right: 15px;
    width: 20px;
    color: #fff;
    font-size: 1.1rem;
}

.newsletter-col {
    max-width: 450px;
}

.input-group {
    display: flex;
    margin-top: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px;
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 15px;
    color: #fff;
    outline: none;
    font-family: inherit;
}

.input-group button {
    background: #fff;
    color: #000;
    border: none;
    padding: 0 25px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group button:hover {
    background: var(--accent-color);
    color: #fff;
}

/* RESPONSIVE UPDATES */
@media (max-width: 768px) {
    .modal-grid {
        flex-direction: column;
    }

    .modal-image {
        height: 250px;
    }

    .modal-text {
        padding: 30px;
    }

    .cart-sidebar {
        width: 100%;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .footer-col {
        width: 100%;
        max-width: 100% !important;
    }

    .footer-col h4 {
        margin-bottom: 15px;
    }

    .footer-contact p {
        justify-content: center;
    }

    .brand-col {
        max-width: 100%;
    }

    .input-group {
        flex-direction: column;
        border: none;
        padding: 0;
        gap: 15px;
    }

    .input-group input {
        border: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
    }

    .input-group button {
        width: 100%;
        padding: 15px;
        min-height: 50px;
    }
}