/*
Theme Name: Cuts Minimalist
Theme URI: https://yoursite.com
Author: Ashir
Author URI: https://yoursite.com
Description: A clean, minimalist WordPress theme for clothing e-commerce inspired by modern fashion brands
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cuts-minimalist
Tags: e-commerce, woocommerce, fashion, clothing, minimalist, clean
*/

/* ===========================
   RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --hover-color: #666666;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background: var(--secondary-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-color);
}

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

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

/* ===========================
   HEADER & NAVIGATION
   =========================== */
.site-header {
    background: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-top {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 8px 0;
    text-align: center;
    font-size: 0.875rem;
}

.header-main {
    padding: 20px 0;
}

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

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 40px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
}

.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-icon {
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--light-gray);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--secondary-color);
    max-width: 600px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
}

.btn-white {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.btn-white:hover {
    background: transparent;
    color: var(--secondary-color);
}

/* ===========================
   PRODUCT GRID
   =========================== */
.products-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--hover-color);
}

/* Layout Switcher */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.layout-switcher {
    display: flex;
    gap: 10px;
}

.layout-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.layout-btn:hover,
.layout-btn.active {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.products-count {
    color: var(--hover-color);
    font-size: 0.9rem;
}

.product-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* List View Layout */
.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 30px;
}

.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

.products-grid.list-view .product-image-wrapper {
    margin-bottom: 0;
}

.products-grid.list-view .product-info {
    padding: 20px 0;
}

.products-grid.list-view .product-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.products-grid.list-view .product-description {
    display: block;
    margin: 15px 0;
    color: var(--hover-color);
    line-height: 1.6;
}

.products-grid.list-view .quick-add-to-cart {
    position: static;
    opacity: 1;
    transform: none;
    margin-top: 20px;
}

.product-description {
    display: none;
}

.product-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--light-gray);
    aspect-ratio: 3/4;
    margin-bottom: 15px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

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

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 5px 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    z-index: 2;
}

.product-badge.sale {
    background: #e74c3c;
}

.product-badge.new {
    background: #27ae60;
}

.product-badge.hot {
    background: #e67e22;
}

.product-badge.featured {
    background: #3498db;
}

/* Product Action Buttons */
.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 3;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

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

.product-action-btn.active {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

/* Quick Add to Cart */
.quick-add-to-cart {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

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

.quick-view-btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    background: var(--secondary-color);
    padding: 12px 30px;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card:hover .quick-view-btn {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.product-info {
    text-align: left;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-category {
    font-size: 0.85rem;
    color: var(--hover-color);
    margin-bottom: 8px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
}

.product-price del {
    color: var(--hover-color);
    font-weight: 400;
    margin-right: 10px;
}

.product-colors {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.2);
}

/* ===========================
   FEATURED CATEGORIES
   =========================== */
.categories-section {
    padding: 80px 0;
    background: var(--light-gray);
}

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

.category-card {
    position: relative;
    height: 450px;
    overflow: hidden;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 40px 30px;
    color: var(--secondary-color);
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.category-link {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* ===========================
   FEATURES SECTION
   =========================== */
.features-section {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item {
    padding: 30px;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.feature-description {
    color: var(--hover-color);
    line-height: 1.8;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--secondary-color);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

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

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--secondary-color);
    background: transparent;
    color: var(--secondary-color);
}

.newsletter-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-btn {
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===========================
   MOBILE NAVIGATION
   =========================== */
.mobile-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--secondary-color);
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-navigation.active {
    right: 0;
}

.mobile-nav-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.mobile-menu {
    list-style: none;
    padding: 20px;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    display: block;
    padding: 10px 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

body.mobile-menu-open {
    overflow: hidden;
}

/* ===========================
   SEARCH MODAL
   =========================== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
}

.search-close {
    position: absolute;
    top: -50px;
    right: 20px;
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.search-close:hover {
    opacity: 1;
}

.search-form {
    display: flex;
    background: var(--secondary-color);
    border-radius: 4px;
    overflow: hidden;
}

.search-field {
    flex: 1;
    padding: 20px;
    border: none;
    font-size: 1.2rem;
    outline: none;
}

.search-submit {
    padding: 20px 30px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Live Search Results */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-top: none;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.search-results-dropdown.active {
    display: block;
}

.search-result-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: var(--light-gray);
}

.search-result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-details {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.search-result-price {
    color: var(--hover-color);
    font-size: 0.9rem;
}

/* ===========================
   QUICK VIEW MODAL
   =========================== */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.quick-view-modal.active {
    display: flex;
}

.quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.quick-view-content {
    position: relative;
    background: var(--secondary-color);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    border-radius: 4px;
}

.quick-view-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.quick-view-close:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.quick-view-inner {
    padding: 40px;
}

.quick-view-loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 2rem;
}

.quick-view-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.quick-view-images {
    position: relative;
}

.quick-view-images img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.quick-view-details {
    padding: 20px 0;
}

.quick-view-details .product-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.quick-view-details .product-price {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.quick-view-details .product-description {
    margin-bottom: 25px;
    line-height: 1.8;
}

.quick-view-add-to-cart {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 30px;
}

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

.quantity-selector button {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.quantity-selector input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
}

body.quick-view-open {
    overflow: hidden;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 968px) {
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* ===========================
   WOOCOMMERCE OVERRIDES
   =========================== */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.woocommerce ul.products li.product {
    text-align: left;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce ul.products li.product .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.woocommerce a.button,
.woocommerce button.button {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px 40px;
    border: 2px solid var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background: transparent;
    color: var(--primary-color);
}
