/* CSS Variables */
:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #e94560;
    --gold: #D4AF37;
    --white: #FFFFFF;
    --light-bg: #f8f9fa;
    --dark-gray: #495057;
    --light-gray: #dee2e6;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --border-radius: 12px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

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

a {
    text-decoration: none;
    color: inherit;
}

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

.btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
    border: 2px solid var(--accent);
}

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

/* Header */
header {
    background: #000000;
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 110px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    position: relative;
}

nav a:hover {
    color: var(--accent);
    background: rgba(233, 69, 96, 0.1);
    transform: translateY(-2px);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 80%;
}

.cart-link {
    color: var(--accent) !important;
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

.page-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.page-header * {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero {
    background: linear-gradient(rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.8)), url('../assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Products */
.products {
    padding: 50px 0;
}

.filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filters select {
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid var(--light-gray);
}

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

.no-image-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    text-align: center;
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card h3 {
    padding: 15px;
    font-size: 1.1rem;
}

.product-card .price {
    padding: 0 15px;
    font-weight: bold;
    color: var(--gold);
}

.product-card .description {
    padding: 0 15px;
    margin: 10px 0;
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

.product-card .old-price {
    text-decoration: line-through;
    color: var(--light-gray);
    margin-left: 10px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding: 0 15px 15px;
}

.product-actions .btn {
    flex: 1;
    margin: 0;
}

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

.product-actions .btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Home Page Sections */
.featured-products,
.categories,
.testimonials {
    padding: 50px 0;
}

.featured-products h2,
.categories h2,
.testimonials h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

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

.category-card {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h3 {
    margin-bottom: 10px;
    color: var(--gold);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.testimonial {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial cite {
    font-weight: bold;
    color: var(--gold);
}

/* Product Details */
.product-details {
    padding: 50px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.product-gallery img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
}

.thumbnail-gallery img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail-gallery img.active {
    border-color: var(--gold);
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 20px;
}

.size-selector {
    margin-bottom: 20px;
}

.size-selector label {
    display: block;
    margin-bottom: 10px;
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-option {
    padding: 10px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option.selected {
    background-color: var(--gold);
    color: var(--black);
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 10px;
}

.quantity-selector input {
    width: 80px;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
}

/* Cart */
.cart-content {
    padding: 50px 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

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

.cart-item h3 {
    margin-bottom: 10px;
}

.cart-item .price {
    margin-bottom: 10px;
}

.cart-item input {
    width: 60px;
    padding: 5px;
    border: 1px solid var(--light-gray);
    border-radius: 3px;
}

#cart-summary {
    background: var(--gray);
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
}

#cart-summary h2 {
    margin-bottom: 20px;
}

/* Checkout */
.checkout-content {
    padding: 50px 0;
}

.checkout-form-section {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.checkout-form-section h2 {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--light-bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Forms */
.contact-content,
.about-content {
    padding: 50px 0;
}

.contact-form,
.about-text {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    margin-top: 50px;
    text-align: center;
}

.contact-info p {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0 30px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

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

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    gap: 15px;
    list-style: none;
}

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    display: inline-block;
}

.social-links a:hover {
    color: var(--accent);
    background-color: rgba(233, 69, 96, 0.1);
    transform: scale(1.1);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--dark-gray);
    padding-top: 20px;
    text-align: center;
}

.developer-credit {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--light-gray);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.developer-credit:hover {
    opacity: 1;
    color: var(--gold);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header .container {
        flex-direction: column;
        align-items: center;
        padding: 10px 15px;
    }

    .logo {
        margin-bottom: 10px;
    }

    .logo img {
        height: 80px;
    }

    nav {
        width: 100%;
    }

    nav ul {
        flex-direction: row;
        justify-content: space-around;
        gap: 8px;
        padding: 8px 0;
    }

    nav a {
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 20px;
    }

    .hamburger {
        display: none;
    }

    .product-details {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cart-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .filters {
        gap: 15px;
    }

    .filters select {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    header .container {
        flex-direction: column;
        align-items: center;
        padding: 8px 10px;
    }

    .logo {
        margin-bottom: 8px;
    }

    .logo img {
        height: 70px;
    }

    nav {
        width: 100%;
    }

    nav ul {
        flex-direction: row;
        justify-content: space-around;
        gap: 4px;
        padding: 6px 0;
    }

    nav a {
        padding: 6px 8px;
        font-size: 12px;
        border-radius: 15px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-header {
        padding: 30px 0;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .filters {
        flex-direction: column;
        gap: 10px;
    }

    .filters select {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-card {
        border-radius: 8px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 8px;
    }

    .social-links {
        justify-content: center;
        gap: 20px;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states */
.btn:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Error states */
.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
}

/* Product Details Page Enhancements */
.product-description {
    margin-top: 30px;
}

.product-description h2 {
    margin-bottom: 15px;
}

.product-details-section {
    margin-top: 30px;
}

.product-details-section h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    padding: 10px;
    background: var(--light-bg);
    border-radius: 5px;
    border-left: 3px solid var(--gold);
}

.product-tags {
    margin-top: 30px;
}

.product-tags h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--light-bg);
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid var(--light-gray);
}

.promo-original {
    text-decoration: line-through;
    color: var(--light-gray);
    font-size: 0.9rem;
    margin-left: 10px;
}