/*
Theme Name: Golden Woo Theme
Theme URI: https://sultan-magfory.com/
Author: Antigravity
Author URI: https://gemini.google.com/
Description: A premium, highly customizable, conversion-optimized WooCommerce theme. Styled with rounded curves and modern colors inspired by sultan-magfory.com. Supports RTL & LTR layout styles.
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: goldenwootheme
Domain Path: /languages
Tags: e-commerce, custom-colors, right-to-left-language, translation-ready, grid-layout, custom-menu, custom-logo
*/

/* ==========================================
   1. DESIGN SYSTEM & CSS VARIABLES
   ========================================== */
:root {
    /* Red and Black Color Palette (شركة الطليع الدولي التجارية) */
    --gwt-primary: #dc2626;
    --gwt-primary-dark: #991b1b;
    --gwt-primary-light: #ef4444;
    --gwt-secondary: #111827;
    --gwt-secondary-hover: #000000;
    --gwt-bg-color: #ffffff;
    --gwt-text-color: #111827;
    --gwt-muted-color: #6b7280;
    --gwt-border-color: #e5e7eb;
    --gwt-bg-tint: #fff5f5;
    --gwt-shadow: rgba(220, 38, 38, 0.10);
    --gwt-shadow-hover: rgba(220, 38, 38, 0.22);
    
    /* Layout Constants */
    --gwt-font-family: 'Cairo', sans-serif;
    --gwt-border-radius: 12px;
    --gwt-border-radius-card: 20px 10px 20px 10px;
    --gwt-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--gwt-font-family);
    background-color: var(--gwt-bg-color);
    color: var(--gwt-text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--gwt-primary);
    text-decoration: none;
    transition: var(--gwt-transition);
}

a:hover {
    color: var(--gwt-primary-dark);
}

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

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
}

/* ==========================================
   3. LAYOUT UTILITIES
   ========================================== */
.gwt-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.gwt-grid {
    display: grid;
    gap: 24px;
}

.gwt-grid-2 { grid-template-columns: repeat(2, 1fr); }
.gwt-grid-3 { grid-template-columns: repeat(3, 1fr); }
.gwt-grid-4 { grid-template-columns: repeat(4, 1fr); }
.gwt-grid-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) {
    .gwt-grid-4, .gwt-grid-5 { grid-template-columns: repeat(3, 1fr); }
    .gwt-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .gwt-grid-3, .gwt-grid-4, .gwt-grid-5 { grid-template-columns: repeat(2, 1fr); }
    .gwt-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .gwt-grid-3, .gwt-grid-4, .gwt-grid-5, .gwt-grid-2 { grid-template-columns: 1fr; }
}

/* ==========================================
   4. BUTTON & UI ELEMENTS
   ========================================== */
.gwt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--gwt-border-radius);
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--gwt-transition);
    text-align: center;
}

.gwt-btn-primary {
    background-color: var(--gwt-primary);
    color: #ffffff;
}

.gwt-btn-primary:hover {
    background-color: var(--gwt-primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--gwt-shadow);
}

.gwt-btn-secondary {
    background-color: var(--gwt-secondary);
    color: #ffffff;
}

.gwt-btn-secondary:hover {
    background-color: var(--gwt-secondary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.3);
}

.gwt-btn-outline {
    background-color: transparent;
    border-color: var(--gwt-primary);
    color: var(--gwt-primary);
}

.gwt-btn-outline:hover {
    background-color: var(--gwt-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================
   5. HEADER SECTION
   ========================================== */
.gwt-top-bar {
    background-color: var(--gwt-secondary);
    color: #ffffff;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    position: relative;
}

.gwt-top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gwt-marquee {
    flex-grow: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}

.gwt-marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: gwt-marquee-anim 25s linear infinite;
}

@keyframes gwt-marquee-anim {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.gwt-top-contact {
    display: flex;
    gap: 16px;
}

.gwt-main-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--gwt-border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.gwt-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.gwt-logo img {
    height: 55px;
    width: auto;
}

.gwt-search-form {
    flex-grow: 1;
    max-width: 500px;
    position: relative;
}

.gwt-search-form input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 48px;
    border: 1px solid var(--gwt-border-color);
    border-radius: var(--gwt-border-radius);
    background-color: var(--gwt-bg-tint);
    transition: var(--gwt-transition);
}

.gwt-search-form input:focus {
    border-color: var(--gwt-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px var(--gwt-shadow);
}

.gwt-search-form button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gwt-primary);
}

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

.gwt-icon-btn {
    font-size: 22px;
    color: var(--gwt-text-color);
    position: relative;
    cursor: pointer;
}

.gwt-icon-btn span.count {
    position: absolute;
    top: -5px;
    left: -10px;
    background-color: var(--gwt-secondary);
    color: #ffffff;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.gwt-quick-links {
    background-color: #ffffff;
    border-bottom: 1px solid var(--gwt-border-color);
    padding: 10px 0;
}

.gwt-quick-links-list {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.gwt-quick-links-list a {
    font-weight: 700;
    color: var(--gwt-text-color);
}

.gwt-quick-links-list a:hover {
    color: var(--gwt-primary);
}

/* ==========================================
   5. HERO MAIN SLIDER (FULL WIDTH)
   ========================================== */
.gwt-main-slider-container {
    position: relative;
    width: 100%;
    height: 480px;
    max-height: 70vh;
    overflow: hidden;
    background-color: var(--gwt-secondary);
}

@media (max-width: 992px) {
    .gwt-main-slider-container {
        height: 380px;
    }
}

@media (max-width: 600px) {
    .gwt-main-slider-container {
        height: 260px;
    }
}

.gwt-main-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.gwt-main-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gwt-main-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.gwt-main-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.gwt-slider-prev,
.gwt-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(17, 24, 39, 0.6);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--gwt-transition);
    backdrop-filter: blur(4px);
}

.gwt-slider-prev:hover,
.gwt-slider-next:hover {
    background-color: var(--gwt-primary);
    border-color: var(--gwt-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.gwt-slider-prev {
    right: 20px;
}

.gwt-slider-next {
    left: 20px;
}

.gwt-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.gwt-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--gwt-transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gwt-slider-dot.active,
.gwt-slider-dot:hover {
    background-color: var(--gwt-primary);
    width: 32px;
    border-radius: 10px;
    border-color: var(--gwt-primary);
}

/* ==========================================
   6. SECTIONS COMMON LAYOUT
   ========================================== */
.gwt-section {
    padding: 60px 0;
}

.gwt-section-title-wrap {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gwt-section-badge {
    background-color: var(--gwt-bg-tint);
    border: 1px solid var(--gwt-border-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gwt-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.gwt-ping-dot {
    position: relative;
    display: inline-flex;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--gwt-primary);
}

.gwt-ping-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--gwt-primary);
    animation: gwt-ping-anim 1.5s ease-in-out infinite;
}

@keyframes gwt-ping-anim {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.gwt-section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--gwt-text-color);
}

.gwt-section-desc {
    font-size: 16px;
    color: var(--gwt-muted-color);
    margin-top: 8px;
}

/* ==========================================
   7. FOOTER SECTION
   ========================================== */
.gwt-main-footer {
    background-color: var(--gwt-bg-tint);
    padding: 60px 0 20px;
    border-top: 1px solid var(--gwt-border-color);
}

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

@media (max-width: 992px) {
    .gwt-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.gwt-footer-col h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
}

.gwt-footer-col p {
    color: var(--gwt-muted-color);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.gwt-footer-menu a {
    color: var(--gwt-muted-color);
    font-weight: 600;
}

.gwt-footer-menu a:hover {
    color: var(--gwt-primary);
    padding-left: 5px;
}

.gwt-social-icons {
    display: flex;
    gap: 12px;
}

@media (max-width: 992px) {
    .gwt-social-icons {
        justify-content: center;
    }
}

.gwt-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px var(--gwt-shadow);
    color: var(--gwt-primary);
}

.gwt-social-btn:hover {
    background-color: var(--gwt-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

.gwt-footer-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 24px 0;
    border-top: 1px solid var(--gwt-border-color);
    border-bottom: 1px solid var(--gwt-border-color);
}

.gwt-badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #ffffff;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid var(--gwt-border-color);
}

.gwt-badge-item img {
    height: 30px;
}

.gwt-badge-text p {
    font-size: 11px;
    color: var(--gwt-muted-color);
}

.gwt-badge-text b {
    font-size: 13px;
}

.gwt-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-size: 14px;
    color: var(--gwt-muted-color);
}

@media (max-width: 768px) {
    .gwt-footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

.gwt-payments {
    display: flex;
    gap: 8px;
}

.gwt-payments img {
    height: 25px;
    border-radius: 4px;
}

/* WhatsApp Floating Widget */
.gwt-whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: var(--gwt-transition);
}

.gwt-whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   8. WOOCOMMERCE CUSTOM STYLES
   ========================================== */
.woocommerce-loop-product__title {
    font-family: var(--gwt-font-family);
    font-weight: 700;
    color: var(--gwt-text-color);
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.price {
    font-family: var(--gwt-font-family);
    color: var(--gwt-primary) !important;
    font-weight: 800;
    font-size: 18px;
}

.price del {
    color: var(--gwt-muted-color) !important;
    font-size: 14px;
    font-weight: 500;
    margin-right: 5px;
}

.price ins {
    text-decoration: none;
}

.onsale {
    background-color: var(--gwt-secondary) !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 4px 12px !important;
    top: 15px !important;
    right: 15px !important;
    left: auto !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.5 !important;
}

.woocommerce-product-gallery {
    border-radius: var(--gwt-border-radius);
    overflow: hidden;
}

.woocommerce-tabs ul.tabs {
    border-bottom: 2px solid var(--gwt-border-color) !important;
}

.woocommerce-tabs ul.tabs li {
    background: none !important;
    border: none !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--gwt-primary) !important;
    border-bottom: 3px solid var(--gwt-primary);
}

/* Mobile responsive fixes for WC list pages */
@media (max-width: 768px) {
    ul.products.columns-4 li.product,
    ul.products.columns-3 li.product {
        width: 48% !important;
        float: right !important;
        margin-left: 4% !important;
        margin-right: 0 !important;
    }
    
    ul.products.columns-4 li.product:nth-child(2n),
    ul.products.columns-3 li.product:nth-child(2n) {
        margin-left: 0 !important;
    }
}

/* WooCommerce Loop Product Thumbnail Styling */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product a img,
.woocommerce-page ul.products li.product img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
    transition: transform 0.3s ease !important;
}

.woocommerce ul.products li.product:hover img,
.woocommerce-page ul.products li.product:hover img {
    transform: scale(1.03) !important;
}
