/* =========================================
   1. Variables
   ========================================= */
:root {
    --primary-color: #596ddb;
    --primary-dark: #4a5bb8;
    --secondary-color: #2c3e50;
    --accent-color: #ffffff;
    --text-light: #f8f9fa;
    --text-dark: #333333;
    --transition: all 0.3s ease;
}

/* =========================================
   2. Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #596ddb;
    margin: 10px auto 0;
}

.bg-light {
    background-color: #f9f9f9;
}

/* =========================================
   3. Components
   ========================================= */

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.primary-btn {
    background-color: #596ddb;
    color: white;
    margin-right: 10px;
}

.primary-btn:hover {
    background-color: #4858b3;
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.secondary-btn:hover {
    background-color: white;
    color: #333;
}

.sm-btn {
    background-color: #596ddb;
    color: white;
    padding: 8px 15px;
    font-size: 0.9rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sm-btn:hover {
    background-color: #4858b3;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #596ddb;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 150px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    text-align: center;
    padding: 20px;
}

.file-upload-wrapper:hover {
    border-color: var(--primary-color);
    background-color: #f0f4ff;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.file-upload-text {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.file-upload-info {
    font-size: 0.8rem;
    color: #666;
}

.file-upload-wrapper.has-file {
    border-style: solid;
    border-color: #28a745;
    background-color: #e8f5e9;
}

.file-upload-wrapper.has-file .file-upload-icon {
    color: #28a745;
}

/* Loading Spinner */
.loading-spinner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    grid-column: 1 / -1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification Toast */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transform: translateY(100px);
    transition: transform 0.3s ease-out;
    z-index: 2000;
}

.notification.show {
    transform: translateY(0);
}

.notification.error {
    background-color: #dc3545;
}

/* =========================================
   4. Layout - Header & Navigation
   ========================================= */
header {
    width: 100%;
    z-index: 1000;
}

.main-header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: #fff;
    opacity: 1;
}

.cart-icon, .account-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
    color: white;
    transition: var(--transition);
}

.cart-icon:hover, .account-icon:hover {
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
    color: white;
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    position: absolute;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.hamburger .bar:nth-child(1) { top: 0; }
.hamburger .bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger .bar:nth-child(3) { bottom: 0; }

.hamburger.active .bar:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* =========================================
   5. Layout - Footer
   ========================================= */
footer {
    background-color: #596ddb;
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-col p {
    margin-bottom: 0.5rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ddd;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #ddd;
}

.social-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    font-size: 0.9rem;
}

/* =========================================
   6. Page - Home / Hero
   ========================================= */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 55vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 60px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    z-index: 1;
}

.hero-text {
    text-align: left;
    color: white;
}

.hero-main-logo {
    max-width: 350px;
    height: auto;
    margin-bottom: 1rem;
    display: block;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-text .highlight {
    color: #ffd700;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 500px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    gap: 25px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-card-stack {
    position: relative;
    width: 300px;
    height: 300px;
}

.card-stack-item {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: transform 0.5s ease;
}

.item-1 {
    top: 0;
    left: 50px;
    z-index: 3;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    transform: rotate(-5deg);
}

.item-2 {
    top: 40px;
    right: 20px;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    transform: rotate(10deg);
}

.item-3 {
    bottom: -20px;
    left: 20px;
    z-index: 1;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    transform: rotate(-15deg);
}

.hero-card-stack:hover .item-1 { transform: translateY(-20px) rotate(0deg); }
.hero-card-stack:hover .item-2 { transform: translateX(20px) rotate(15deg); }
.hero-card-stack:hover .item-3 { transform: translateX(-20px) rotate(-20deg); }

/* Hero Header Container (Alternative Header) */
.hero-header-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 4rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 10;
}

.hero-header-container nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-header-container .nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.hero-header-container .nav-links li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.hero-header-container .nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: white;
    transition: var(--transition);
}

.hero-header-container .nav-links li a:hover::after,
.hero-header-container .nav-links li a.active::after {
    width: 100%;
}

.hero-header-container .nav-links li a:hover,
.hero-header-container .nav-links li a.active {
    color: white;
}

.hero-header-container .cart-icon,
.hero-header-container .account-icon,
.hero-header-container .hamburger {
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    position: relative;
    transition: var(--transition);
}

.hero-header-container .cart-icon:hover,
.hero-header-container .account-icon:hover {
    transform: scale(1.1);
    color: white;
}

.hero-content, .hero-logo {
    display: none;
}

/* =========================================
   7. Page - Shop
   ========================================= */
.shop-header {
    position: relative;
    background: linear-gradient(120deg, var(--primary-color), #3b4ba5);
    color: white;
    padding: 5rem 0 8rem;
    margin-bottom: 2rem;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    overflow: hidden;
}

.shop-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.shop-header::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.shop-header h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.shop-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.shop-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.shop-sidebar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.filter-group h3 {
    display: none;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.filter-btn {
    display: inline-block;
    width: auto;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50px;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: none;
}

.filter-btn:last-child {
    border-bottom: 1px solid transparent;
}

.filter-btn:hover {
    background-color: #f0f4ff;
    color: var(--primary-color);
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(89, 109, 219, 0.3);
    transform: none;
}

.shop-controls {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.shop-controls select {
    padding: 10px 35px 10px 20px;
    border-radius: 50px;
    border: 1px solid #eee;
    background-color: #f8f9fa;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    box-shadow: none;
}

.shop-controls select:hover {
    background-color: #fff;
    border-color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-image {
    height: 250px;
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;
}

.product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-info h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.product-info h3 a:hover {
    color: var(--primary-color);
}

.product-info .price {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.product-info .btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.product-info .btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%22200%22%20height%3D%22200%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20200%20200%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%23holder_1%20text%20%7B%20fill%3A%23999%3Bfont-weight%3Anormal%3Bfont-family%3AHelvetica%2C%20monospace%3Bfont-size%3A10pt%20%7D%20%3C%2Fstyle%3E%3C%2Fdefs%3E%3Cg%20id%3D%22holder_1%22%3E%3Crect%20width%3D%22200%22%20height%3D%22200%22%20fill%3D%22%23eee%22%3E%3C%2Frect%3E%3Cg%3E%3Ctext%20x%3D%2274.4296875%22%20y%3D%22104.5%22%3EProduct%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E');
    background-size: cover;
    background-position: center;
}

/* =========================================
   8. Page - Product Detail
   ========================================= */
.product-detail-container {
    display: flex;
    gap: 50px;
}

.product-detail-image {
    flex: 1;
}

.product-detail-image img {
    width: 100%;
    border-radius: 8px;
}

.product-gallery {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    opacity: 0.7;
}

.gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.product-detail-info {
    flex: 1;
}

.price-large {
    font-size: 2rem;
    color: #596ddb;
    font-weight: bold;
    margin: 10px 0 20px;
}

.product-variants {
    margin: 20px 0;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variant-option {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    background: white;
    transition: all 0.2s;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    text-align: center;
}

.variant-option:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

.variant-option.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.variant-option .v-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.variant-option .v-price {
    font-size: 0.8rem;
    opacity: 0.8;
}

.product-actions {
    margin: 30px 0;
}

.product-meta p {
    margin-bottom: 10px;
    color: #666;
}

.product-meta i {
    color: #28a745;
    margin-right: 10px;
}

/* =========================================
   9. Page - Cart
   ========================================= */
.cart-container {
    display: flex;
    gap: 40px;
}

.cart-items-container {
    flex: 2;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    gap: 20px;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-controls button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
}

.cart-item-total {
    font-weight: bold;
    min-width: 80px;
    text-align: right;
}

.remove-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.1rem;
}

.remove-btn:hover {
    color: #dc3545;
}

.cart-summary {
    flex: 1;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 10px;
    margin-bottom: 20px;
}

.full-width {
    width: 100%;
    text-align: center;
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
}

/* =========================================
   10. Page - Other (About, Contact, Services)
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-card {
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5rem;
    color: #596ddb;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
}

.features-list {
    margin-top: 20px;
}

.features-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.features-list i {
    color: #596ddb;
    margin-right: 10px;
    min-width: 20px;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.info-item i {
    width: 30px;
    color: #596ddb;
    font-size: 1.2rem;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* =========================================
   11. Responsive
   ========================================= */
@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-main-logo {
        max-width: 80%;
        margin: 0 auto 1.5rem;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-image {
        display: none;
    }

    .hero-header-container {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #596ddb;
        flex-direction: column;
        padding: 20px;
        text-align: center;
        z-index: 1000;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .shop-layout, .cart-container, .product-detail-container {
        flex-direction: column;
    }
    
    .shop-sidebar {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        border-radius: 20px;
        gap: 15px;
        margin-bottom: 20px;
    }

    .filter-group {
        justify-content: center;
        overflow-x: visible;
        flex-wrap: wrap;
        padding-bottom: 0;
    }
    
    .filter-btn {
        white-space: normal;
        flex-shrink: 1;
        margin-bottom: 5px;
    }

    .shop-controls {
        width: 100%;
        margin-top: 5px;
        border-top: 1px solid #eee;
        padding-top: 15px;
    }
    
    .shop-controls select {
        width: 100%;
        text-align: center;
        background-position: right 20px center;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-info h3 {
        font-size: 0.9rem;
    }
    
    .product-info .price {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .product-info .btn {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 90%; 
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.preview-image-container {
    text-align: center;
    margin: 20px 0;
}

.preview-image-container img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#preview-details {
    margin-top: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
}

/* Lightbox Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev-lightbox,
.next-lightbox {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.next-lightbox {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-lightbox {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev-lightbox:hover,
.next-lightbox:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 100%;
    }
    .prev-lightbox, .next-lightbox {
        padding: 10px;
        font-size: 20px;
    }
}
