/*
Theme Name: DoubleRiff
Theme URI: https://doubleriff.com
Author: DoubleRiff
Author URI: https://doubleriff.com
Description: A fashion e-commerce theme replicating the Next.js DoubleRiff design
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: doubleriff
*/

/* ========================================
   CSS Variables / Brand Colors
   ======================================== */
:root {
    --color-primary: #dda15e;
    --color-secondary: #bc6c25;
    --color-accent: #ffffff;
    --color-background: #ffffff;
    --color-text: #111827;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: inherit;
}

/* ========================================
   Layout Utilities
   ======================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* ========================================
   Header Styles
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--color-background);
}

/* Logo Row */
.header-logo-row {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo img {
    transition: opacity 0.2s ease;
}

.header-logo:hover img {
    opacity: 0.8;
}

.header-logo .logo-desktop {
    display: none;
    width: 130px;
    height: auto;
}

.header-logo .logo-mobile {
    display: block;
    width: 90px;
    height: auto;
}

@media (min-width: 768px) {
    .header-logo .logo-desktop {
        display: block;
    }
    .header-logo .logo-mobile {
        display: none;
    }
}

/* Nav Row */
.header-nav-row {
    padding: 0.5rem 0 0.75rem;
    border-bottom: 1px solid rgba(188, 108, 37, 0.2);
}

.header-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Main Menu */
.main-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .main-menu {
        display: flex;
    }
}

.main-menu a {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-secondary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .header-icons {
        gap: 1rem;
    }
}

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    padding: 0.25rem;
}

.header-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Cart Icon with Badge */
.cart-icon {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: var(--color-secondary);
    color: var(--color-background);
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Language Switcher */
.language-switcher {
    display: none;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

@media (min-width: 640px) {
    .language-switcher {
        display: flex;
    }
}

.lang-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.25rem;
    border: 1px solid rgba(188, 108, 37, 0.4);
    color: var(--color-secondary);
    transition: all 0.2s ease;
}

@media (min-width: 768px) {
    .lang-btn {
        padding: 0.25rem 0.75rem;
        font-size: 0.875rem;
    }
}

.lang-btn.active {
    background-color: var(--color-secondary);
    color: var(--color-background);
    border-color: var(--color-secondary);
}

/* ========================================
   Product Grid Styles
   ======================================== */
.product-section {
    padding: 1.5rem 0 3rem;
}

.product-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-grid.cols-2 {
    grid-template-columns: repeat(1, 1fr);
}

.product-grid.cols-3 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
    .product-grid.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-grid:last-child {
    margin-bottom: 0;
    padding-bottom: 3rem;
}

/* Product Card */
.product-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card-image {
    position: relative;
    padding-bottom: 150%;
    overflow: hidden;
    background-color: #f5f5f5;
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.product-card-image .main-image {
    z-index: 1;
}

.product-card-image .hover-image {
    z-index: 2;
    opacity: 0;
}

.product-card:hover .main-image {
    opacity: 0;
}

.product-card:hover .hover-image {
    opacity: 1;
}

/* Hover Overlay */
.product-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.product-card:hover .product-card-overlay {
    opacity: 0.1;
}

/* Product Info */
.product-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(221, 161, 94, 0.9));
    color: white;
    padding: 1rem;
    z-index: 4;
}

.product-card-name {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.1;
    color: #111827;
    margin: 0.25rem 0 0.5rem;
    padding-top: 2rem;
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-card-price .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent);
}

.product-card-price .sale-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent);
}

.product-card-price .original-price {
    font-size: 1.1rem;
    text-decoration: line-through;
    opacity: 0.7;
}

/* ========================================
   Footer Styles
   ======================================== */
.site-footer {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-column h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #ffffff;
    opacity: 1;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.social-icons a {
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.social-icons a:hover {
    opacity: 0.7;
}

.social-icons svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Email Subscription */
.email-subscription {
    margin-top: 1rem;
}

.email-subscription form {
    display: flex;
    gap: 0.5rem;
}

.email-subscription input[type="email"] {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.25rem;
    background: transparent;
    color: #ffffff;
    font-size: 0.875rem;
}

.email-subscription input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.email-subscription input[type="email"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
}

.email-subscription button {
    padding: 0.5rem 1rem;
    background-color: var(--color-secondary);
    color: #ffffff;
    border-radius: 0.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: opacity 0.2s ease;
}

.email-subscription button:hover {
    opacity: 0.9;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   Utility Classes
   ======================================== */
.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;
}

.hidden {
    display: none !important;
}

@media (max-width: 639px) {
    .sm\:hidden {
        display: none !important;
    }
}

@media (min-width: 640px) {
    .sm\:block {
        display: block !important;
    }
}

@media (min-width: 768px) {
    .md\:hidden {
        display: none !important;
    }
    .md\:block {
        display: block !important;
    }
}

@media (min-width: 1024px) {
    .lg\:hidden {
        display: none !important;
    }
    .lg\:flex {
        display: flex !important;
    }
}
