/* ===================================
   Patshell - MAIN STYLESHEET
   =================================== */

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

:root {
    --primary-color: #000000;
    --secondary-color: #ff6b6b;
    --accent-color: #4ecdc4;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f8f8;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --product-section-gradient: linear-gradient(
        165deg,
        #050c1a 0%,
        #0a1635 25%,
        #0f2147 50%,
        #1a237e 72%,
        #0c1538 100%
    );
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.35s var(--ease-out), background-color 0.35s var(--ease-out);
}

.header.header-scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.logo {
    flex-shrink: 0;
}

.logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.logo-img {
    display: block;
    height: 92px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    object-position: left center;
}

.logo span {
    color: var(--secondary-color);
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.35rem;
    background: linear-gradient(145deg, #f4f6f9 0%, #eef2f7 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-menu li + li {
    margin-left: 0;
}

.nav-menu a {
    display: inline-block;
    position: relative;
    padding: 0.5rem 1.15rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out),
        transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.nav-menu a:hover {
    color: #c94a3d;
    background: rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.15);
}

.nav-menu a.active {
    color: #fff;
    background: linear-gradient(135deg, #ff6b6b 0%, #e85d4f 100%);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(232, 93, 79, 0.4);
    transform: translateY(-1px);
}

.nav-menu a.active:hover {
    color: #fff;
    background: linear-gradient(135deg, #ff8577 0%, #ff6b6b 100%);
    box-shadow: 0 6px 18px rgba(232, 93, 79, 0.45);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.35rem 0.75rem;
    transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.search-box:focus-within {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
}

.search-box input {
    border: none;
    outline: none;
    padding: 0.2rem;
    width: 150px;
    font-size: 0.875rem;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cart-icon {
    position: relative;
    text-decoration: none;
    font-size: 1.25rem;
    color: var(--text-dark);
    transition: transform 0.3s var(--ease-spring), color 0.25s ease;
}

.cart-icon:hover {
    transform: scale(1.12);
    color: var(--secondary-color);
}

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

.login-btn {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.login-btn:hover {
    background-color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.login-btn:active {
    transform: translateY(0);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background:
        radial-gradient(ellipse 90% 80% at 55% 45%, rgba(88, 130, 210, 0.35), transparent 55%),
        linear-gradient(160deg, #0a1f35 0%, #142d4a 45%, #1a2744 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.75;
    pointer-events: none;
    animation: heroBlob 14s ease-in-out infinite;
}

.hero::before {
    width: min(520px, 70vw);
    height: min(420px, 55vh);
    top: -18%;
    left: -8%;
    background: radial-gradient(circle, #ff7b6b 0%, #e85d4f 45%, transparent 70%);
}

.hero::after {
    width: min(480px, 65vw);
    height: min(400px, 50vh);
    bottom: -22%;
    right: -6%;
    background: radial-gradient(circle, #5ec8e8 0%, #3a9ec4 40%, transparent 70%);
    animation-delay: -7s;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    position: relative;
    overflow: hidden;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.55s var(--ease-out);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background-color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    padding: 10px 20px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* Category Section */
.categories {
    padding: 60px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.category-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.category-card:hover img {
    transform: scale(1.06);
}

.category-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 2rem;
    text-align: center;
    font-size: 1.5rem;
}

.category-card a {
    text-decoration: none;
    color: inherit;
}

/* Product sections – dark royal blue gradient */
.featured-products,
.new-arrivals,
.best-sellers {
    padding: 60px 0;
    background: var(--product-section-gradient);
    position: relative;
}

.featured-products::before,
.new-arrivals::before,
.best-sellers::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 20% 0%, rgba(65, 105, 225, 0.15), transparent 55%),
        radial-gradient(ellipse 60% 45% at 85% 100%, rgba(30, 58, 138, 0.25), transparent 50%);
    pointer-events: none;
}

.featured-products .container,
.new-arrivals .container,
.best-sellers .container {
    position: relative;
    z-index: 1;
}

.featured-products .section-title,
.new-arrivals .section-title,
.best-sellers .section-title {
    color: #eef2ff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.products-page {
    padding: 40px 0 60px;
    background: var(--product-section-gradient);
    position: relative;
}

.products-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(65, 105, 225, 0.12), transparent 60%);
    pointer-events: none;
}

.products-page > .container {
    position: relative;
    z-index: 1;
}

.products-page .page-title,
.products-page .products-header h2 {
    color: #eef2ff;
}

.products-page .sort-options label {
    color: rgba(238, 242, 255, 0.9);
}

.products-page .sort-options select {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

.products-page .no-products {
    color: rgba(238, 242, 255, 0.85);
}

.products-page .filters-sidebar {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s var(--ease-out);
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
}

.wishlist-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.wishlist-icon:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

.wishlist-icon:active {
    transform: scale(0.95);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.product-rating {
    color: #ffc107;
    margin-bottom: 0.5rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.price-current {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
}

.price-original {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-discount {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.add-to-cart {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.25s var(--ease-out), transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out);
}

.add-to-cart:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.35);
}

.add-to-cart:active {
    transform: translateY(0);
}

/* Products Page */
.products-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.filters-sidebar {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filters-sidebar h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.filter-group {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.8rem;
    cursor: pointer;
}

.filter-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

.size-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-options label {
    padding: 5px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
}

.size-options input[type="checkbox"]:checked + span,
.size-options input:checked {
    border-color: var(--secondary-color);
}

.products-main {
    min-height: 500px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-options select {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
}

.no-products {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Product Details Page */
.product-details-page {
    padding: 40px 0;
}

.product-details-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-gallery {
    display: grid;
    gap: 1rem;
}

.main-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.thumbnail-images img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail-images img:hover,
.thumbnail-images img.active {
    border-color: var(--secondary-color);
}

.product-info-details h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-rating-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.price-section {
    margin-bottom: 2rem;
}

.size-selector,
.color-selector {
    margin-bottom: 2rem;
}

.size-selector h3,
.color-selector h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.size-options-detail {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.size-option {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.size-option:hover,
.size-option.selected {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.color-options-detail {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.color-option.selected {
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quantity-selector h3 {
    margin-right: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.quantity-controls button {
    padding: 8px 15px;
    border: none;
    background: var(--bg-light);
    cursor: pointer;
    font-size: 1.2rem;
}

.quantity-controls input {
    width: 60px;
    padding: 8px;
    border: none;
    text-align: center;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.product-description {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.product-description h2 {
    margin-bottom: 1rem;
}

.product-description p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.delivery-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.reviews-section {
    margin-top: 3rem;
}

.review-item {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Cart Page */
.cart-page {
    padding: 40px 0;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.cart-items {
    background: var(--bg-white);
}

.cart-item {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.25s ease, transform 0.25s var(--ease-out);
    border-radius: 8px;
}

.cart-item:hover {
    background-color: var(--bg-light);
}

.cart-item-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item-info h3 {
    margin-bottom: 0.5rem;
}

.cart-item-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    border-radius: 5px;
    cursor: pointer;
}

.remove-item {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.cart-item-price {
    text-align: right;
}

.cart-item-price .price {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem;
}

.cart-summary {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: bold;
    border-bottom: none;
    padding-top: 1rem;
    border-top: 2px solid var(--text-dark);
}

/* Checkout Page */
.checkout-page {
    padding: 40px 0;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.checkout-form-section,
.order-summary-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-confirmation {
    text-align: center;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: 10px;
    margin-top: 2rem;
}

.order-confirmation h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Auth Pages */
.auth-page {
    padding: 60px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 450px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
}

.auth-link a {
    color: var(--secondary-color);
    text-decoration: none;
}

.error-message,
.success-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

.error-message {
    background: #ffe6e6;
    color: #cc0000;
}

.success-message {
    background: #e6ffe6;
    color: #006600;
}

/* About Page */
.about-page {
    padding: 40px 0;
}

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

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-section p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 10px;
    text-align: center;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
}

/* Contact Page */
.contact-page {
    padding: 40px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info > p {
    margin-bottom: 2rem;
    color: var(--text-light);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.contact-form-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
}

.map-section {
    margin-top: 3rem;
}

.map-placeholder {
    height: 400px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section h3 span {
    color: var(--secondary-color);
}

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

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

.footer-section a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s var(--ease-out);
}

.footer-section a:hover {
    color: white;
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    transition: transform 0.3s var(--ease-spring), color 0.25s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 968px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

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

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow);
        padding: 1rem;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0.35rem;
        align-items: stretch;
        padding: 0.5rem;
        border-radius: 12px;
    }

    .nav-menu li + li {
        margin-left: 0;
        margin-top: 0;
    }

    .nav-menu a {
        display: block;
        padding: 0.75rem 1rem;
        text-align: center;
        width: 100%;
    }

    .nav-menu a:hover {
        transform: none;
    }

    .nav-menu a.active {
        transform: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-content {
        padding: 0.4rem 0;
        gap: 0.5rem;
    }

    .logo-img {
        height: 72px;
        max-width: 210px;
    }

    .header-actions {
        gap: 0.4rem;
    }

    .search-box {
        padding: 0.25rem 0.5rem;
    }

    .search-box input {
        width: 100px;
        font-size: 0.8rem;
    }

    .login-btn {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

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

    .cart-item {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }
}

/* ===================================
   ANIMATIONS & SCROLL REVEALS
   =================================== */

@keyframes heroBlob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(6%, 4%) scale(1.06);
    }
    66% {
        transform: translate(-4%, 6%) scale(0.94);
    }
}

/* Hero CTA on gradient */
.hero .btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #e85d4f 100%);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.35);
}

.hero .btn-primary:hover {
    background: linear-gradient(135deg, #ff8577 0%, #ff6b6b 100%);
    box-shadow: 0 12px 28px rgba(255, 107, 107, 0.45);
}

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

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

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

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.25); }
    70% { transform: scale(0.95); }
}

.cart-count.bump {
    animation: cartBounce 0.45s var(--ease-spring);
}

/* Hero entrance */
.hero-content h1 {
    animation: fadeInUp 0.7s var(--ease-out) backwards;
}

.hero-content p {
    animation: fadeInUp 0.7s var(--ease-out) 0.12s backwards;
}

.hero-content .btn-primary {
    animation: fadeInUp 0.7s var(--ease-out) 0.24s backwards;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title.reveal {
    transform: translateY(16px);
}

/* Stagger product & category cards */
.products-grid .product-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.products-grid .product-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.products-grid .product-card.reveal:nth-child(3) { transition-delay: 0.15s; }
.products-grid .product-card.reveal:nth-child(4) { transition-delay: 0.2s; }
.products-grid .product-card.reveal:nth-child(n+5) { transition-delay: 0.22s; }

.category-grid .category-card.reveal:nth-child(1) { transition-delay: 0.08s; }
.category-grid .category-card.reveal:nth-child(2) { transition-delay: 0.16s; }
.category-grid .category-card.reveal:nth-child(3) { transition-delay: 0.24s; }

/* Page title */
.page-title {
    animation: fadeInUp 0.6s var(--ease-out) backwards;
}

/* Auth & contact cards */
.auth-container,
.contact-form-section,
.cart-summary,
.checkout-form-section,
.order-summary-section {
    transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.auth-container:hover,
.contact-form-section:hover,
.cart-summary:hover {
    box-shadow: var(--shadow-hover);
}

.main-image {
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.product-gallery:hover .main-image {
    transform: scale(1.02);
}

.thumbnail-images img {
    transition: border-color 0.25s ease, transform 0.25s var(--ease-out), opacity 0.25s ease;
}

.thumbnail-images img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.size-option,
.color-option {
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease-spring);
}

.size-option:hover {
    transform: translateY(-2px);
}

.contact-item {
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    border-radius: 8px;
    padding: 0.25rem;
}

.contact-item:hover {
    transform: translateX(6px);
}

.success-message {
    animation: fadeInUp 0.5s var(--ease-out);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero::before,
    .hero::after {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
