/*
Theme Name: T-Shirt Custom
Theme URI: https://example.com/t-shirt-custom
Author: Shafiq
Author URI: https://example.com
Description: A premium, minimalist, lightweight, and modern custom WordPress theme designed specifically for T-shirt e-commerce shops. Fully compatible with WooCommerce.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: t-shirt-custom
*/

/* ==========================================
   1. DESIGN SYSTEM & CSS VARIABLES
   ========================================== */
:root {
    --bg-color: #FFFFFF;
    --text-color: #111111;
    --text-muted: #666666;
    --accent-color: #FF4757;
    --accent-hover: #e03241;
    --light-bg: #F9F9F9;
    --border-color: #EEEEEE;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --max-width: 1200px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --header-height: 80px;
}

/* ==========================================
   2. BASE STYLES & TYPOGRAPHY
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--text-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 12px 28px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.2);
}

/* ==========================================
   3. HEADER & NAVIGATION
   ========================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

/* WordPress Admin Bar Compatibility */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}


.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    height: 70px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-logo a {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

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

.nav-wrapper {
    display: flex;
    align-items: center;
}

.primary-menu {
    display: flex;
    gap: 30px;
}

.primary-menu a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 10px 0;
}

.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
}

.primary-menu a:hover::after,
.primary-menu .current-menu-item a::after {
    width: 100%;
}

/* Header Cart - Premium Capsule Button (Inline Flex, No Overlaps) */
.header-cart-link {
    display: flex;
    align-items: center;
    gap: 8px; /* equal spacing between trolley icon, count pill, and subtotal */
    margin-left: 30px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    background-color: #F8F9FA; /* high contrast background */
    color: var(--text-color) !important;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-cart-link:hover {
    background-color: var(--accent-color);
    color: var(--bg-color) !important;
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.2);
}

.header-cart-icon {
    display: flex;
    align-items: center;
    color: var(--text-color);
    transition: var(--transition-smooth);
}

.header-cart-link:hover .header-cart-icon {
    color: var(--bg-color);
}

.header-cart-count {
    background-color: var(--accent-color);
    color: var(--bg-color);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px; /* clean inline pill */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: var(--transition-smooth);
}

.header-cart-link:hover .header-cart-count {
    background-color: var(--bg-color);
    color: var(--accent-color);
}

.header-cart-total {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
    transition: var(--transition-smooth);
}

.header-cart-link:hover .header-cart-total {
    color: var(--bg-color) !important;
}



/* Mobile Hamburger Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition-smooth);
}

/* ==========================================
   4. HERO BANNER
   ========================================== */
.hero-banner {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    right: 5%;
    bottom: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 71, 87, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--accent-color);
}

.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 35px;
}

/* ==========================================
   5. PRODUCT GRID (4 COLUMNS DESKTOP)
   ========================================== */
.section-products {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

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

/* Product Card Styling */
.product-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 15px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
}

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

.product-image-link {
    display: block;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    aspect-ratio: 1 / 1;
    background-color: var(--light-bg);
}

.product-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.product-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card-title a:hover {
    color: var(--accent-color);
}

.product-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.product-card-price del {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
    margin-right: 5px;
}

.product-card-price ins {
    text-decoration: none;
}

/* Add to Cart button customizations */
.product-card .add_to_cart_button,
.product-card .product_type_simple {
    margin-top: auto;
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    transition: var(--transition-smooth);
    text-align: center;
    display: block;
}

.product-card .add_to_cart_button:hover,
.product-card .product_type_simple:hover {
    background-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.15);
}

.product-card .added_to_cart {
    display: block;
    text-align: center;
    font-size: 12px;
    margin-top: 8px;
    font-weight: 600;
    color: var(--accent-color);
}

/* ==========================================
   6. FOOTER SECTION (3 COLUMNS)
   ========================================== */
.site-footer {
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
    color: var(--text-color);
}

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

.footer-column h3 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    position: relative;
}

.footer-column h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    margin-top: 10px;
}

.footer-column p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact li {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================
   7. SINGLE PAGE, BLOG & POST TEMPLATE
   ========================================== */
.page-header-banner {
    background-color: var(--light-bg);
    padding: 120px 0 60px;
    text-align: center;
    margin-bottom: 60px;
}

.page-header-banner h1 {
    font-size: 38px;
    margin: 0;
}

.default-page-content {
    padding-bottom: 80px;
    max-width: 800px;
    margin: 0 auto;
}

.default-page-content h2,
.default-page-content h3 {
    margin: 30px 0 15px;
}

.default-page-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* ==========================================
   8. WOOCOMMERCE GENERAL STYLING COMPATIBILITY
   ========================================== */
.woocommerce-page .site-header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Main Shop layout adjustments */
.woocommerce-main-content {
    padding: 140px 0 80px;
}

.woocommerce-breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.woocommerce-breadcrumb a {
    color: var(--text-muted);
}

.woocommerce-breadcrumb a:hover {
    color: var(--accent-color);
}

/* WooCommerce Default Buttons override */
.woocommerce #respond input#submit, 
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button,
.woocommerce #respond input#submit.alt, 
.woocommerce a.button.alt, 
.woocommerce button.button.alt, 
.woocommerce input.button.alt {
    background-color: var(--accent-color);
    color: var(--bg-color);
    font-family: var(--font-primary);
    border-radius: 0;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 28px;
    transition: var(--transition-smooth);
}

.woocommerce #respond input#submit:hover, 
.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover, 
.woocommerce a.button.alt:hover, 
.woocommerce button.button.alt:hover, 
.woocommerce input.button.alt:hover {
    background-color: var(--accent-hover);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.2);
}

/* Single Product Page custom integrations */
.product_title {
    font-size: 32px;
    margin-bottom: 15px;
}

.woocommerce-Price-amount {
    font-weight: 700;
}

.price {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 25px;
}

/* ==========================================
   9. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-column:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .hero-title {
        font-size: 40px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-wrapper {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: var(--transition-smooth);
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .nav-wrapper.active {
        left: 0;
    }

    .primary-menu {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .primary-menu a {
        font-size: 18px;
    }

    .header-cart-link {
        margin-left: 0;
        margin-top: 30px;
        font-size: 16px;
    }

    /* Mobile menu hamburger states */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-column:first-child {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

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