/*
Theme Name: Alpine Theme
Author: BF Team
Description: Custom theme for Alpine
Version: 1.0
*/

/* ==========================================================================
   Fonts
   ========================================================================== */
   @font-face {
    font-family: 'Atlas AAA';
    src: url('fonts/atlas-aaa-300.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Atlas AAA';
    src: url('fonts/atlas-aaa-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Atlas AAA';
    src: url('fonts/atlas-aaa-500.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Atlas AAA';
    src: url('fonts/atlas-aaa-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   Normalize / Reset (Simplified)
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    direction: rtl;
}

body {
    margin: 0;
    font-family: 'Atlas AAA', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
    border: 0;
    border-top: 1px solid #eee;
    margin: 1em 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 500;
    line-height: 1.3;
}

p {
    margin-top: 0;
    margin-bottom: 1em;
}

ul, ol {
    margin-top: 0;
    margin-bottom: 1em;
    padding-right: 2em; /* RTL padding */
}

img {
    border-style: none;
    height: auto;
    max-width: 100%;
}

a {
    background-color: transparent;
    text-decoration: none;
    color: #00529b; /* Example link color */
}

a:hover {
    color: #003f7a; /* Example link hover color */
}

button, input, optgroup, select, textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button, input {
    overflow: visible;
}

button, select {
    text-transform: none;
}

button, [type="button"], [type="reset"], [type="submit"] {
    -webkit-appearance: button;
}

/* ==========================================================================
   Global Helper Classes
   ========================================================================== */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container { max-width: 540px; }
}
@media (min-width: 768px) {
    .container { max-width: 720px; }
}
@media (min-width: 992px) {
    .container { max-width: 960px; }
}
@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}
@media (min-width: 1400px) {
    .container { max-width: 1320px; }
}

.text-center {
    text-align: center !important;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Basic Element Styling
   ========================================================================== */
body {
    font-family: var(--alpine-font-main, 'Atlas AAA', sans-serif);
    color: var(--alpine-text-main, #111);
    background-color: var(--alpine-light-bg, #fff);
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700; /* Bolder headings */
    color: var(--alpine-dark-text, #1B1B1B);
}

a {
    color: var(--alpine-link-color, #00529b);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--alpine-link-hover, #003f7a);
}


/* ==========================================================================
   WordPress Core & Plugin Adjustments
   ========================================================================== */

/* Example: Basic Gutenberg alignment */
.alignleft {
    float: right; /* RTL */
    margin: 0.5em 0 0.5em 1em;
}

.alignright {
    float: left; /* RTL */
    margin: 0.5em 1em 0.5em 0;
}

.aligncenter {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* WooCommerce Basic Adjustments */
.woocommerce {
    /* Add basic container/spacing if needed */
}

.woocommerce ul.products {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(309px, 1fr)); /* Example grid */
    gap: 10px;
    padding-bottom: 30px;
}

.woocommerce ul.products li.product {
    list-style: none;
    margin: 0;
    padding: 10px;
}

/* TI Wishlist Counter in Header Fix */
.wishlist_products_counter_number {
    display: inline-block; /* Ensure it displays */
    position: relative;    /* Allow positioning */
    top: -2px;             /* Fine-tune vertical position */
    right: -2px;            /* Fine-tune horizontal position */
}


/* ==========================================================================
   Variables (Example - Define where appropriate)
   ========================================================================== */
:root {
    --alpine-red: #e0192e;
    --alpine-dark-text: #1B1B1B;
    --alpine-light-bg: #FFFFFF;
    --alpine-light-grey: #F5F5F5;
    --alpine-grey: #CCCCCC;
    --alpine-text-main: #111;
    --alpine-text-secondary: #555;
    --alpine-border-color: #ddd;
    --alpine-font-main: 'Atlas AAA', sans-serif;
    --alpine-link-color: #00529b;
    --alpine-link-hover: #003f7a;
    --alpine-dark-bg: #2a2a2a;
}


/* ==========================================================================
   Owl Carousel Base Styles (Keep if used globally)
   ========================================================================== */
.owl-carousel .owl-item img {
    display: block;
    width: 100%;
}

.owl-theme .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 5px 7px;
    background: #D6D6D6;
    display: block;
    -webkit-backface-visibility: visible;
    transition: opacity 200ms ease;
    border-radius: 30px;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: var(--alpine-red, #e0192e);
}

/* Add other essential base styles if needed */

/* End of Core Styles */