/*
Theme Name: Adrin
Theme URI: https://adrinsports.com
Author: Muskaan
Author URI: https://adrinsports.com
Description: A modern WordPress theme for Adrin Sports. Clean, responsive, and fully customizable.
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: adrin
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, responsive-layout, sports

Adrin WordPress Theme, (C) 2024 Adrin Sports
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kedebideri', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    /* color: #ffffff; */
}

h1 { font-size: 120px; }
h2 { font-size: 80px; }
h3 { font-size: 60px; }
h4 { font-size: 40px; }
h5 { font-size: 20px; }
h6 { font-size: 16px; }

p {
    font-family: 'Kedebideri', sans-serif;
    margin-bottom: 20px;
    /* color: #ffffff; */
}

a {
    color: #002b6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #47d5ff;
}
img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Promo Bar */
.promo-bar {
    background-color: #47d5ff;
    padding: 10px 0;
    text-align: center;
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.promo-bar.hidden {
    display: none;
}

.promo-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.promo-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.promo-text {
    font-family: 'Kedebideri', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    margin: 0;
    padding: 0 30px;
}

.promo-bar-close {
    position: absolute;
    right: 0;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #000000;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.promo-bar-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.site-header {
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    background-color: #ffffff;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 30px;
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 auto;
}

.header-search form {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search .search-field {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Kedebideri', sans-serif;
    font-size: 14px;
    color: #333333;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.header-search .search-field:focus {
    outline: none;
    border-color: #47d5ff;
    box-shadow: 0 0 0 3px rgba(147, 214, 0, 0.1);
}

.header-search .search-field::placeholder {
    color: #999999;
}

.header-search .search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.header-search .search-submit:hover {
    color: #47d5ff;
}

.header-search .search-submit svg {
    width: 18px;
    height: 18px;
}
.site-title {
    font-family: 'Roboto', sans-serif;
    font-size: 120px;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #000000;
}

.site-title a:hover {
    color: #002b6b;
}
.site-header .site-branding {
    max-width: 120px;
}

/* Navigation */
.main-navigation {
    position: relative;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #000;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #002b6b;
}

/* Submenu Styles */
.main-navigation ul li {
    position: relative;
}

.main-navigation .sub-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 200px;
    padding: 10px 0;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
        display: block;
}

.main-navigation ul li:hover > .sub-menu,
.main-navigation ul li.focus > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu li {
    width: 100%;
    margin: 0;
}

.main-navigation .sub-menu a {
    display: block;
    padding: 12px 20px;
    color: #333333;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.main-navigation .sub-menu li:last-child a {
    border-bottom: none;
}

.main-navigation .sub-menu a:hover {
    background-color: rgba(71, 213, 255, 0.1);
    color: #47d5ff;
    padding-left: 25px;
}

/* Submenu Indicator Arrow */
.main-navigation .menu-item-has-children > a::after {
    content: '▼';
    font-size: 8px;
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
    vertical-align: middle;
    color: #666666;
}

.main-navigation .menu-item-has-children:hover > a::after,
.main-navigation .menu-item-has-children.focus > a::after {
    transform: rotate(180deg);
    color: #47d5ff;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10002;
    position: relative;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    opacity: 0.8;
}

.menu-toggle:focus {
    outline: 2px solid #47d5ff;
    outline-offset: 2px;
    border-radius: 4px;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    height: 18px;
    position: relative;
}

.menu-toggle-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #000000;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
    transform-origin: center;
}

.site-header .main-navigation.toggled .menu-toggle-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.site-header .main-navigation.toggled .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.site-header .main-navigation.toggled .menu-toggle-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -4px);
}

/* Content */
.site-content {
    padding: 2rem 0;
    min-height: 60vh;
    background-color: #ffffff;
}

/* Footer styles moved to footer.css */

/* Responsive */
@media (max-width: 1024px) {
    h1 { font-size: 80px; }
    h2 { font-size: 60px; }
    h3 { font-size: 50px; }
    h4 { font-size: 35px; }
}

@media (max-width: 768px) {
    .promo-bar {
        padding: 8px 0;
    }
    
    .promo-text {
        font-size: 12px;
        padding: 0 25px;
    }
    
    .promo-bar-close {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }
    
    .site-header {
        padding: 0.75rem 0;
        position: relative;
        z-index: 10001;
    }
    
    .site-header .container {
        flex-wrap: wrap;
        gap: 1rem;
        position: relative;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        margin: 15px 0 0;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .site-header .site-branding {
        max-width: 100px;
        flex: 0 0 auto;
        position: relative;
        z-index: 10002;
        order: 1;
    }
    
    .main-navigation {
        flex: 1 1 auto;
        display: flex;
        justify-content: flex-end;
        position: relative;
        order: 2;
    }
    
    .menu-toggle {
        display: flex;
        margin-left: auto;
        position: relative;
        z-index: 10002;
    }
    
    /* Full-page menu overlay */
    .main-navigation::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .main-navigation.toggled::before {
        opacity: 1;
        visibility: visible;
    }
    
    .main-navigation ul {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        gap: 0;
        padding: 80px 0 40px;
        margin: 0;
        z-index: 10000;
        overflow-y: scroll;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-20px);
        transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                    visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                    pointer-events 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        justify-content: flex-start;
        align-items: center;
        display: flex;
    }
    
    .main-navigation.toggled ul {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        overflow-y: scroll;
    }
    
    .main-navigation ul li {
        width: 100%;
        max-width: 600px;
        margin: 0;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        flex-shrink: 0;
    }
    
    .main-navigation.toggled ul li {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered animation for menu items - Opening */
    .main-navigation.toggled ul li:nth-child(1) {
        transition-delay: 0.1s;
    }
    
    .main-navigation.toggled ul li:nth-child(2) {
        transition-delay: 0.15s;
    }
    
    .main-navigation.toggled ul li:nth-child(3) {
        transition-delay: 0.2s;
    }
    
    .main-navigation.toggled ul li:nth-child(4) {
        transition-delay: 0.25s;
    }
    
    .main-navigation.toggled ul li:nth-child(5) {
        transition-delay: 0.3s;
    }
    
    .main-navigation.toggled ul li:nth-child(6) {
        transition-delay: 0.35s;
    }
    
    .main-navigation.toggled ul li:nth-child(7) {
        transition-delay: 0.4s;
    }
    
    .main-navigation.toggled ul li:nth-child(8) {
        transition-delay: 0.45s;
    }
    
    /* Reset transition delays when closing */
    .main-navigation:not(.toggled) ul li {
        transition-delay: 0s;
    }
    
    .main-navigation a {
        display: block;
        padding: 1.5rem 30px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 1.3rem;
        color: #000000;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 500;
        position: relative;
    }
    
    .main-navigation a:hover,
    .main-navigation a:focus {
        background-color: rgba(71, 213, 255, 0.15);
        color: #47d5ff;
        transform: translateX(5px);
    }
    
    .main-navigation ul li:last-child a {
        border-bottom: none;
    }
    
    .main-navigation ul li:first-child a {
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    /* Mobile Submenu Styles */
    .main-navigation .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: rgba(0, 0, 0, 0.03);
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        width: 100%;
    }
    
    .main-navigation ul li.focus > .sub-menu,
    .main-navigation ul li:hover > .sub-menu {
        max-height: 500px;
        padding: 10px 0;
        overflow: visible;
    }
    
    .main-navigation .sub-menu li {
        width: 100%;
        flex-shrink: 0;
    }
    
    .main-navigation .sub-menu a {
        padding: 1rem 50px;
        font-size: 1.1rem;
        color: #666666;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .main-navigation .sub-menu a:hover {
        background-color: rgba(71, 213, 255, 0.15);
        color: #47d5ff;
        padding-left: 55px;
    }
    
    .main-navigation .menu-item-has-children > a::after {
        content: '+';
        font-size: 18px;
        margin-left: 10px;
        font-weight: 300;
    }
    
    .main-navigation .menu-item-has-children.focus > a::after,
    .main-navigation .menu-item-has-children:hover > a::after {
        content: '−';
        transform: none;
    }
    
    /* Prevent body scroll when menu is open, but allow menu to scroll */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    /* Ensure menu can scroll even when body is fixed */
    body.menu-open .main-navigation.toggled ul {
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    h1 { font-size: 50px; }
    h2 { font-size: 40px; }
    h3 { font-size: 32px; }
    h4 { font-size: 24px; }
    h5 { font-size: 18px; }
    h6 { font-size: 16px; }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .site-header .site-branding {
        max-width: 80px;
        z-index: 0;
    }
    
    .menu-toggle {
        width: 40px;
        height: 40px;
        padding: 8px;
        z-index: 10002;
    }
    
    .menu-toggle-icon {
        width: 22px;
        height: 16px;
    }
    
    .main-navigation a {
        padding: 1.25rem 15px;
        font-size: 1.1rem;
    }
    
    h1 { font-size: 36px; }
    h2 { font-size: 30px; }
    h3 { font-size: 24px; }
    h4 { font-size: 20px; }
    h5 { font-size: 16px; }
    h6 { font-size: 14px; }
    
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 12px;
    }
}


.bg-peach {
    background: #47d5ff !important;
}
.bg-grey {
    background: #f8f8f8 !important;
}
.bg-cream {
    background: #f8f8f8 !important;
}

/* ------------------------------------
   2. COMPONENTS
------------------------------------ */

/* Buttons */
.btn {
    display: inline-block;
    background: #47d5ff;
    padding: 12px 30px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 20px;
}

/* Cards */
.card {
    border: 2px solid #47d5ff;
    padding-bottom: 20px;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card h3 {
    margin: 15px;
    color: #002b6b;
}

.card p {
    margin: 0 15px 10px;
    opacity: 0.9;
}

/* ------------------------------------
   3. LAYOUT STRUCTURE
------------------------------------ */

/* Sections padding */
section {
    padding: 80px 20px;
    overflow: hidden;
    position: relative;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 45px;
    font-family: 'Kedebideri', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), gap 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    z-index: 1;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.btn-cta:hover::before {
    width: 300px;
    height: 300px;
}

.btn-cta:hover {
    gap: 12px;
}


.has-text-align-center {
   color: #0a0a0a !important;
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    margin: 0 0 20px !important;
}

/* .text-light p , .text-light span , .text-light a , .text-light h2 , .text-light h3 , .text-light h4 , .text-light h5 , .text-light h6 , .text-light h1 {
    color: #fff !important;
} */

body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link) {
    background: #47d5ff;
    color: #ffff;
}