/**
 * George Burley Theme Stylesheet
 *
 * Theme Name: George Burley
 * Theme URI: https://georgeburley.com
 * Author: George Burley Team
 * Description: Premium Men's Innerwear - Custom WooCommerce Theme
 * Version: 2.0.1
 * License: GPL-2.0-or-later
 * Text Domain: george-burley
 **/

:root {
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Outfit', 'Helvetica Neue', sans-serif;
  --gb-gold:      #C9A961;
  --gb-red:       #B8272C;
  --gb-black:     #000000;
  --gb-white:     #ffffff;
}


/* === BASE === */
body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
}

/* ==========================================================
   Shop Archive 3-Column Grid (Overrides WooCommerce defaults)
   ========================================================== */
/* ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem 1.5rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
} */

/* ==========================================================
   Product Card Images & Badges
   ========================================================== */
ul.products li.product a.woocommerce-loop-product__link {
    display: block;
    position: relative;
    margin-bottom: 0.75rem;
}
ul.products li.product a.woocommerce-loop-product__link img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 4px;
}
/* Star Rating Badge */
.product-rating-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffffff;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 500;
    color: #000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 1;
}
.product-rating-badge .star {
    color: #D4AF37; /* Gold */
}
/* SPORT Badge */
.product-category-badge-sport {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #000000;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 1;
}

/* ==========================================================
   Product Card Typography & Layout
   ========================================================== */
ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 0 0.5rem 0 !important;
    padding: 0 !important;
    color: #000 !important;
    line-height: 1.3;
}
/* Flex container for Price & Reviews */
ul.products li.product .gb-prod-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    margin-top: 0 !important;
}
ul.products li.product .gb-prod-meta .price {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #000 !important;
}
ul.products li.product .gb-prod-meta .product-review-count {
    font-size: 13px !important;
    color: #6b7280 !important;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 640px) {
    ul.products {
        grid-template-columns: repeat(1, 1fr) !important;
    }
    ul.products li.product a.woocommerce-loop-product__link img {
        aspect-ratio: 4/5;
    }
}
.site-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 50;
    flex-shrink: 0;
    width: 100%;
}
 
/* ─── TOP BAR ─── */
.top-bar {
    background: var(--gb-black);
    color: #ffffff;
    padding: 0 1rem;
    height: 40px;
    display: flex;
    align-items: center;
    width: 100%;
}
 
.top-bar-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}
 
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
 
.top-bar-phone {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
 
.top-bar-phone svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
 
.top-bar-delivery {
    font-size: 0.65rem;
    opacity: 0.85;
}
 
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
 
.top-bar-right .delivery-desktop {
    display: none;
}
 
@media (min-width: 768px) {
    .top-bar-right .delivery-desktop {
        display: inline;
    }
}
 
@media (max-width: 480px) {
    .top-bar-phone {
        display: none;
    }
}
 
@media (max-width: 640px) {
    .top-bar-delivery {
        font-size: 0.55rem;
    }
}
 
/* ─── MAIN HEADER ─── */
.main-header {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
 
@media (min-width: 640px) {
    .main-header {
        height: 80px;
        padding: 0 1.5rem;
    }
}
 
@media (min-width: 1024px) {
    .main-header {
        padding: 0 2rem;
    }
}
 
.site-logo {
    flex-shrink: 0;
    text-decoration: none;
    color: var(--gb-black);
}
 
.site-logo h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
    line-height: 1.2;
}
 
@media (min-width: 640px) {
    .site-logo h1 {
        font-size: 1.875rem;
    }
}
 
/* ─── DESKTOP NAV ─── */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}
 
.desktop-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
 
.desktop-nav ul li {
    margin: 0;
    padding: 0;
    position: relative;
}
 
.desktop-nav ul li a {
    color: var(--gb-black);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}
 
.desktop-nav ul li a:hover,
.desktop-nav ul li a:focus {
    color: var(--gb-red);
}
 
/* Submenu support (fixes the old mobile walker dropping child items) */
.desktop-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 0.5rem 0;
    min-width: 180px;
    flex-direction: column;
    gap: 0;
    z-index: 60;
}
.desktop-nav ul li:hover > ul,
.desktop-nav ul li:focus-within > ul {
    display: flex;
}
.desktop-nav ul ul li a {
    padding: 0.5rem 1rem;
    display: block;
}
 
@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }
}
 
/* ─── RIGHT ACTIONS ─── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
 
@media (min-width: 640px) {
    .header-actions {
        gap: 1.5rem;
    }
}
 
.header-actions .action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gb-black);
    transition: opacity 0.2s;
    position: relative;
}
 
.header-actions .action-btn:hover {
    opacity: 0.7;
}
 
.header-actions .action-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}
 
.header-actions .action-link {
    color: var(--gb-black);
    text-decoration: none;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    position: relative;
}
 
.header-actions .action-link:hover {
    opacity: 0.7;
}
 
.header-actions .action-link svg {
    width: 20px;
    height: 20px;
    display: block;
}
 
.action-desktop {
    display: none;
}
 
@media (min-width: 640px) {
    .action-desktop {
        display: flex;
    }
}
 
/* Cart badge */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--gb-red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    transition: transform 0.2s;
}
 
.cart-badge.pulse {
    animation: pulse 0.5s ease;
}
 
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
 
.cart-badge.hidden {
    display: none;
}
 
/* ─── HAMBURGER ─── */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
    color: var(--gb-black);
}
 
.hamburger-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}
 
.hamburger-btn svg {
    width: 24px;
    height: 24px;
    display: block;
}
 
.hamburger-btn .hamburger-icon line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
 
.hamburger-btn.open .hamburger-icon line:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}
 
.hamburger-btn.open .hamburger-icon line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
 
.hamburger-btn.open .hamburger-icon line:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}
 
@media (min-width: 1024px) {
    .hamburger-btn {
        display: none;
    }
}
 
/* ─── MOBILE MENU ─── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}
 
#mobile-menu.open {
    max-height: 100vh;
    overflow-y: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
 
.mobile-menu-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 1rem 1.5rem;
}
 
.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
 
.mobile-nav-item,
.mobile-nav-list li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gb-black);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
 
.mobile-nav-item:hover,
.mobile-nav-item:focus,
.mobile-nav-list li a:hover,
.mobile-nav-list li a:focus {
    background: var(--gb-gray);
    color: var(--gb-red);
}
 
.mobile-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
}
 
.mobile-actions a,
.mobile-actions button {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--gb-black);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}
 
.mobile-actions a:hover,
.mobile-actions button:hover {
    color: var(--gb-red);
}
 
.mobile-actions .action-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
 
.mobile-actions .action-badge {
    background: var(--gb-red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.05rem 0.45rem;
    border-radius: 9999px;
    line-height: 1.4;
    margin-left: 0.15rem;
}
 
@media (max-width: 640px) {
    .mobile-menu-inner {
        padding: 1rem 0.75rem 1.25rem;
    }
    .mobile-nav-item,
    .mobile-nav-list li a {
        padding: 0.5rem 0.625rem;
        font-size: 0.875rem;
    }
    .mobile-actions {
        gap: 1rem;
    }
    .mobile-actions a,
    .mobile-actions button {
        font-size: 0.8rem;
    }
}
 
/* ─── CONTENT ─── */
.site-content {
    flex: 1 0 auto;
    background: #ffffff;
    width: 100%;
}
 
.content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}
 
@media (min-width: 640px) {
    .content-wrapper {
        padding: 1.5rem 1.5rem;
    }
}
 
@media (min-width: 1024px) {
    .content-wrapper {
        padding: 1.5rem 2rem;
    }
}
 
/* ─── UTILITIES ─── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.flex-shrink-0 { flex-shrink: 0; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.font-medium { font-weight: 500; }
.text-gray-700 { color: #374151; }
.mt-4 { margin-top: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.block { display: block; }
.w-full { width: 100%; }
 
@media (min-width: 640px) {
    .sm\:block { display: block !important; }
    .sm\:hidden { display: none !important; }
}
@media (min-width: 768px) {
    .md\:block { display: block !important; }
}
@media (min-width: 1024px) {
    .lg\:flex { display: flex !important; }
    .lg\:hidden { display: none !important; }
}
 
/* Admin bar offset (sticky header only, no !important battles needed) */
.admin-bar .site-header {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}
