/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Bootstrap CSS */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');
/* Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Variables */
:root {
    /* Colors - Updated to blue and white theme */
    --primary-color: #1a73e8;
    --primary-light: rgba(26, 115, 232, 0.1);
    --secondary-color: #0d47a1;
    --accent-color: #4285f4;
    --text-color: #333333;
    --text-light: #757575;
    --background-color: #ffffff;
    --background-light: #f5f9ff;
    --border-color: #e0e0e0;
    
    /* Typography */
    --body-font: 'Poppins', sans-serif;
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
    
    /* Font Weight */
    --font-medium: 500;
    --font-bold: 700;
    
    /* Margins */
    --mb-0-5: 0.5rem;
    --mb-0-75: 0.75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;
    
    /* z-index */
    --z-tooltip: 10;
    --z-fixed: 100;
    
    /* Transitions */
    --transition-duration: 0.3s;
}

/* Dark Theme Variables */
.dark-theme {
    --primary-color: #64b5f6;
    --primary-light: rgba(100, 181, 246, 0.1);
    --secondary-color: #90caf9;
    --text-color: #f5f5f5;
    --text-light: #b0bec5;
    --background-color: #121212;
    --background-light: #1e1e1e;
    --border-color: #333333;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition-duration), color var(--transition-duration);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--text-color);
    font-weight: var(--font-bold);
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

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

button, input {
    border: none;
    outline: none;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}

button {
    cursor: pointer;
}

/* Landing Background */
.landing-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('../images/mattress-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.landing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(26, 115, 232, 0.8) 100%);
}

/* Reusable Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

.section {
    padding: 5rem 0;
    position: relative;
    background-color: var(--background-color);
}

.section-title {
    position: relative;
    font-size: var(--h2-font-size);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: var(--font-medium);
    border-radius: 4px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(26, 115, 232, 0.2);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(26, 115, 232, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(26, 115, 232, 0.2);
}

.btn-light {
    background-color: var(--background-color);
    color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    background-color: var(--background-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: var(--z-fixed);
    transition: all 0.4s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: var(--font-bold);
    font-size: 1.25rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

.logo i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    background-color: var(--background-color);
    padding: 3rem 2rem;
    box-shadow: -1px 0 4px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    z-index: var(--z-fixed);
}

.nav.show-menu {
    right: 0;
}

.nav-list {
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: var(--font-medium);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after, 
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--text-color);
    background-color: transparent;
}

.header-buttons {
    display: flex;
    align-items: center;
    column-gap: 1rem;
}

.theme-toggle, .cart-toggle, .nav-toggle {
    font-size: 1.25rem;
    color: var(--primary-color);
    background-color: transparent;
    transition: transform 0.3s ease;
}

.theme-toggle:hover, 
.cart-toggle:hover, 
.nav-toggle:hover {
    transform: rotate(15deg);
}

.theme-toggle .fa-sun {
    display: none;
}

.dark-theme .theme-toggle .fa-moon {
    display: none;
}

.dark-theme .theme-toggle .fa-sun {
    display: inline-block;
}

.cart-toggle {
    position: relative;
}

.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Section */
.hero {
    padding: 7rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.hero-text h1 {
    font-size: var(--biggest-font-size);
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.hero-text .price {
    font-size: var(--h2-font-size);
    font-weight: var(--font-bold);
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-image {
    position: relative;
}

.social-links {
    position: absolute;
    left: -3rem;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

.hero-image-container {
    background-color: var(--primary-light);
    width: 100%;
    max-width: 400px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(26, 115, 232, 0.2);
    overflow: hidden;
}

.hero-image-container img {
    transition: transform 0.5s ease;
}

.hero-image-container:hover img {
    transform: scale(1.05);
}

/* Featured Section */
.featured {
    background-color: var(--background-light);
    padding: 5rem 0;
    position: relative;
}

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

.featured-card {
    position: relative;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(26, 115, 232, 0.15);
    border-color: var(--primary-color);
}

.featured-tag {
    position: absolute;
    top: 1rem;
    left: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    font-size: var(--smaller-font-size);
    text-transform: uppercase;
    z-index: 1;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.featured-image {
    padding: 2rem;
    display: flex;
    justify-content: center;
    background-color: var(--primary-light);
}

.featured-image img {
    max-height: 200px;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.1) rotate(3deg);
}

.featured-title {
    text-align: center;
    font-size: var(--h3-font-size);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    padding: 0 1rem;
}

.featured-price {
    text-align: center;
    font-weight: var(--font-bold);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.featured-button {
    display: block;
    width: 80%;
    margin: 0 auto 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.featured-card:hover .featured-button {
    opacity: 1;
    transform: translateY(0);
}

/* Story Section */
.story {
    padding: 5rem 0;
    background-color: var(--background-color);
    position: relative;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.story-text h2 {
    font-size: var(--h2-font-size);
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.story-text h3 {
    font-size: var(--h1-font-size);
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.story-text p {
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.story-image {
    position: relative;
}

.story-square {
    width: 250px;
    height: 250px;
    background-color: var(--primary-light);
    border-radius: 8px;
    margin-left: auto;
    box-shadow: 0 10px 30px rgba(26, 115, 232, 0.15);
    overflow: hidden;
}

.story-image img {
    position: absolute;
    top: -2rem;
    left: 0;
    width: 505px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.story-image:hover img {
    transform: scale(1.03);
}

/* Products Section */
.products {
    background-color: var(--background-light);
    padding: 5rem 0;
    position: relative;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(26, 115, 232, 0.15);
    border-color: var(--primary-color);
}

.product-image {
    position: relative;
    padding: 1rem;
    display: flex;
    justify-content: center;
    background-color: var(--primary-light);
}

.product-image img {
    max-height: 120px;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-cart-btn {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.2);
}

.product-card:hover .product-cart-btn {
    opacity: 1;
    transform: translateY(0);
}

.product-cart-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.product-info {
    padding: 1rem;
    text-align: center;
}

.product-title {
    font-size: var(--normal-font-size);
    margin-bottom: 0.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.product-card:hover .product-title {
    color: var(--primary-color);
}

.product-price {
    font-weight: var(--font-bold);
    color: var(--primary-color);
}

/* Testimonial Section */
.testimonial {
    padding: 5rem 0;
    background-color: var(--background-color);
    position: relative;
}

.testimonial-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.testimonial-slider {
    position: relative;
}

.testimonial-slides {
    position: relative;
    min-height: 300px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    transform: translateX(30px);
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.testimonial-quote {
    display: inline-flex;
    background-color: var(--primary-light);
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.testimonial-quote i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.testimonial-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.testimonial-date {
    margin-bottom: 1.5rem;
    font-size: var(--small-font-size);
    color: var(--primary-color);
}

.testimonial-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    transition: transform 0.3s ease;
}

.testimonial-profile:hover .testimonial-avatar {
    transform: scale(1.1);
}

.testimonial-name {
    font-weight: var(--font-medium);
    color: var(--primary-color);
}

.testimonial-role {
    color: var(--text-light);
    font-size: var(--small-font-size);
}

.testimonial-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
}

.testimonial-prev, .testimonial-next {
    background-color: var(--background-color);
    border: 2px solid var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.testimonial-prev:hover, .testimonial-next:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(26, 115, 232, 0.2);
}

.testimonial-image {
    position: relative;
}

.testimonial-square {
    width: 250px;
    height: 250px;
    background-color: var(--primary-light);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(26, 115, 232, 0.15);
}

.testimonial-image img {
    position: absolute;
    bottom: -2rem;
    right: 0;
    width: 530px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.testimonial-image:hover img {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(26, 115, 232, 0.2);
}

/* New Arrivals Section */
.new-arrivals {
    background-color: var(--background-light);
    padding: 5rem 0;
    position: relative;
}

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

.new-arrival-card {
    position: relative;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.new-arrival-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(26, 115, 232, 0.15);
    background-color: var(--primary-light);
}

.new-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: var(--smaller-font-size);
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 1;
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.2);
}

.new-arrival-image {
    padding: 2rem;
    display: flex;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8);
    transition: background-color 0.3s ease;
}

.new-arrival-card:hover .new-arrival-image {
    background-color: rgba(255, 255, 255, 0.95);
}

.new-arrival-image img {
    max-height: 180px;
    transition: transform 0.5s ease;
}

.new-arrival-card:hover .new-arrival-image img {
    transform: scale(1.1) rotate(3deg);
}

.new-arrival-title {
    text-align: center;
    font-size: var(--h3-font-size);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.new-arrival-card:hover .new-arrival-title {
    color: var(--primary-color);
}

.new-arrival-price {
    text-align: center;
    font-weight: var(--font-bold);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.new-arrival-button {
    display: block;
    width: 80%;
    margin: 0 auto 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.new-arrival-card:hover .new-arrival-button {
    opacity: 1;
    transform: translateY(0);
}

/* Newsletter Section */
.newsletter {
    padding: 5rem 0;
    position: relative;
}

.newsletter-content {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(26, 115, 232, 0.2) 100%);
    border-radius: 12px;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(26, 115, 232, 0.1);
    position: relative;
    overflow: hidden;
}

.newsletter-content::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.newsletter-content::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.newsletter-text h2 {
    font-size: var(--h1-font-size);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.newsletter-text p {
    color: var(--text-color);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.newsletter-form input {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

.newsletter-form button {
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: var(--z-fixed);
    transition: right 0.4s ease;
    backdrop-filter: blur(5px);
}

.cart-overlay.show {
    right: 0;
}

.cart-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: var(--background-color);
    padding: 2rem;
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.4s ease forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

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

.cart-header h2 {
    color: var(--primary-color);
}

.cart-close {
    font-size: 1.5rem;
    background-color: transparent;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.cart-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.cart-items {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
}

.cart-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.1);
    transform: translateY(-3px);
}

.cart-item-image {
    background-color: var(--primary-light);
    padding: 0.5rem;
    border-radius: 4px;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease;
}

.cart-item:hover .cart-item-image img {
    transform: scale(1.1);
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: var(--font-medium);
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: var(--font-bold);
    margin-bottom: 0.5rem;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.cart-item-quantity button {
    width: 30px;
    height: 30px;
    background-color: var(--background-light);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.cart-item-quantity button:hover {
    background-color: var(--primary-light);
}

.cart-item-quantity span {
    width: 30px;
    text-align: center;
    font-weight: var(--font-medium);
}

.cart-item-remove {
    color: var(--text-light);
    background-color: transparent;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    color: #f44336;
    transform: scale(1.1);
}

.cart-empty {
    text-align: center;
    padding: 2rem 0;
    display: none;
    animation: fadeIn 0.5s ease;
}

.cart-empty-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}

.cart-empty-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.cart-empty h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.cart-empty p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.cart-summary {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    animation: fadeIn 0.5s ease;
}

.cart-subtotal, .cart-shipping, .cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cart-total {
    font-weight: var(--font-bold);
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.cart-count {
    text-align: right;
    color: var(--text-light);
    font-size: var(--small-font-size);
    margin-bottom: 1.5rem;
}

/* Scroll Up Button */
.scroll-up {
    position: fixed;
    right: 1.5rem;
    bottom: -20%;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-tooltip);
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.scroll-up.show {
    bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.scroll-up:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(26, 115, 232, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0);
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.slide-in {
    animation: slideIn 1s ease-in-out;
}

.scale-in {
    animation: scaleIn 1s ease-in-out;
}

.bounce-in {
    animation: bounceIn 1s ease-in-out;
}

.rotate-in {
    animation: rotateIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-90deg);
    }
    to {
        opacity: 1;
        transform: rotate(0);
    }
}

/* Media Queries */
@media screen and (min-width: 576px) {
    .newsletter-form {
        flex-direction: row;
    }
    
    .newsletter-form button {
        width: auto;
    }
}

@media screen and (min-width: 768px) {
    .nav {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        padding: 0;
        box-shadow: none;
    }
    
    .nav-list {
        flex-direction: row;
        column-gap: 2rem;
    }
    
    .nav-close, .nav-toggle {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .story-content, .testimonial-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        padding: 3rem;
    }
    
    .product-detail-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .product-actions {
        flex-direction: row;
    }
}

@media screen and (min-width: 992px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Responsive: Mobile (max 576px) */
@media screen and (max-width: 576px) {
    .section-title {
        font-size: var(--h3-font-size);
        margin-bottom: var(--mb-2);
    }

    .hero-text h1 {
        font-size: var(--h2-font-size);
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--mb-1);
    }

    .story-square,
    .story-image img,
    .testimonial-square,
    .testimonial-image img {
        width: 397px;
        height: 180px;
    }

    .product-main-image {
        height: 300px;
        padding: 1rem;
    }

    .product-thumbnails {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .product-thumbnail {
        width: 48px;
        height: 48px;
    }

    .product-actions {
        flex-direction: column;
        gap: var(--mb-1);
    }

    .cart-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cart-item-actions {
        flex-direction: column;
        gap: var(--mb-0-5);
    }

    .newsletter-text h2 {
        font-size: var(--h2-font-size);
    }

    .tab-button {
        width: 100%;
        text-align: center;
    }

    .scroll-up {
        right: 1rem;
    }
}

/* Responsive: Tablet (max 768px) */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content,
    .story-content,
    .testimonial-content,
    .newsletter-content,
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: var(--mb-2);
    }

    .product-actions {
        flex-direction: column;
    }

    .newsletter-form {
        flex-direction: column;
        gap: var(--mb-1);
    }

    .featured-grid,
    .products-grid,
    .related-products-grid,
    .new-arrivals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--mb-2);
    }
}

@media screen and (max-width: 576px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: left;
        padding: 1rem 0.75rem;
    }

    .logo {
        display: flex;
        align-items: center;
        font-size: 1rem;
        flex: 1;
    }

    .logo img {
        height: 45px;
        margin-right: 0.5rem;
    }

    .header-buttons {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .header-buttons button {
        background: transparent;
        font-size: 1.25rem;
        color: var(--text-color);
        position: relative;
    }

    .cart-count-badge {
        font-size: 0.65rem;
        width: 16px;
        height: 16px;
        top: -6px;
        right: -6px;
    }

    .nav-toggle,
    .cart-toggle,
    .theme-toggle {
        display: inline-flex !important;
    }
}
.landing-background {
    background-image: url('assets/images/bg.png');
    background-size: cover;
    background-position: center;
    height: 100vh; /* or adjust based on your layout */
    position: relative;
}

.logo-wrapper {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 2cm;
    height: 2cm;
    z-index: 100;
  }
  
  .logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .rotating-border {
    width: 100%;
    height: 100%;
    border: 2px solid gold;
    border-radius: 4px; /* Optional for smooth corners */
    box-sizing: border-box;
    animation: spin 8s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  