/*
General Notes:
--------------
- I Used paddings in html (not css) using bs p-x classes wherever I could.
- I Didn't use rem in fonts (used px instead) cuz I don't want the design to be subjective to user settings
- Most Images are background-image instead of <img> because it won't load when display:none (better performance)
TODO:
--------------
- Add Quick Script Snippets adder dashbord
- Lazy Load BG Images with js
- Auto Complete for Search
- Default for the_exerept (Pages and Posts)
- Default for the_archive_description (Taxonomies)
--------------

sm:  576px
md:  768px
lg:  768px
xl:  1200px
xxl: 1400px 

*/


/* MARK: Fonts */
@font-face {
    font-family: '"Rubik';
    src: url('/wp-content/themes/syria-pet/fonts/rsb.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('/wp-content/themes/syria-pet/fonts/rr.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* MARK: Globals */
:root {

    --sz-logo-w: 200px;

    --clr-pri: #E84343;
    --clr-sec: #461BBB;
    --clr-acc: #F9DC68;
    --clr-txt: #281F3D;
    --clr-bg: #fff;

    /* Details Color */
    --clr-dt: #0000001b;

    /* Random Filler */
    --clr-fil: #ff0000;

    /* Input Placeholders */
    --clr-input-ph-txt: #00000057;


    --bs: 0 0 5px rgba(0, 0, 0, 0.1);
    --bs-5: rgba(0, 0, 0, 0.3) 1px -1px 8px;


    --fs-pri: 34px;
    --fs-sec: 14px;
    --fs-ter: 14px;
    --fs-txt: 12px;
    --fs-sm: 11px;
    --fs-acc: var(--fs-txt);
    --fs-li: 14px;
    --fs-dt: 13px;
    --fs-btn: 13px;
    --fs-mini-cart-buttons: 8px;
}

@media (min-width: 768px) {
    :root {

        --sz-logo-w: 300px;

        --fs-pri: 34px;
        --fs-sec: 14px;
        --fs-ter: 14px;
        --fs-txt: 14px;
        --fs-acc: var(--fs-txt);
        --fs-li: 14px;
        --fs-dt: 14px;
        --fs-btn: 13px;
        --fs-sm: 11px;
        --fs-mini-cart-buttons: 9px;
    }
}

*,
:after,
:before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    background-color: var(--clr-bg);

    /* Global Defaults */
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: var(--fs-txt);
    line-height: 1.2;
    color: var(--clr-txt);

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
.h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
    padding: 0;
    margin-top: .5rem;
    margin-bottom: 1rem;
}

h1,
.h1 {
    color: var(--clr-pri);
    font-size: var(--fs-pri);
}

h2,
.h2 {
    color: var(--clr-pri);
    font-size: var(--fs-sec);
}

h3,
.h3 {
    color: var(--clr-sec);
    font-size: var(--fs-ter);
}

a {
    color: var(--clr-acc);
    font-size: var(--fs-acc);
    text-decoration: none;
}

p {
    line-height: 1.8em;
    color: var(--clr-txt);
}

b,
strong {
    font-weight: bolder;
}

li>a {
    color: var(--clr-txt);
    font-size: var(--fs-li);
}

ul,
li {
    list-style: none;
}

button,
.button {
    color: var(--clr-bg);
    background-color: var(--clr-sec);
    font-size: var(--fs-btn);
    font-weight: bold;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sm-btn {
    font-size: var(--fs-sm);
    font-weight: normal;
    width: 100px;
    min-height: 30px;
}

.btn-secondary {
    color: var(--clr-sec);
    background-color: var(--clr-bg);
    border: 2px solid var(--clr-sec);
}

.not-btn {
    border: none;
    background-color: transparent;
    padding: 0;
    margin: 0;
    color: var(--clr-acc);
    width: fit-content;
}

*[disabled] {
    opacity: 0.6;
    cursor: none;
}

pre {
    padding: 30px;
    background-color: var(--clr-bg-lt);
    border: 1px solid var(--clr-acc);
    border-radius: 10px;
    direction: ltr;
}

figure {
    max-width: 100%;
}

img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}

*[style*="background-image"] {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px;
}

[class*=' dashicons-']::before,
[class^=dashicons-]::before {
    font-size: 22px;
    color: var(--clr-txt);
    ;
}
/* General input, select, and textarea styling */
input:not([type=submit]):not([type=button]):not([type=number]):not([type=radio]):not([type=checkbox]),
textarea,
select {
    padding: 0.75em 1em;
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 42px;
    border: 2px solid var(--clr-dt, #ccc);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--clr-text, #333);
    font-size: 15px;
    line-height: 1.6;
    font-family: inherit;
    box-shadow: none;
    transition: border-color 0.3s ease;
    direction: rtl;
}

/* On focus */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--clr-primary, #007cba);
    outline: none;
}

/* Input URL specifically: left-align for LTR content */
input[type="url"] {
    direction: ltr !important;
    text-align: left !important;
    font-family: monospace;
    background-color: rgba(255, 255, 255, 0.9);
}

/* Submit, radio, and checkbox cleanup */
input[type=submit],
input[type=radio],
input[type=checkbox] {
    color-scheme: light;
}

/* Labels */
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--clr-label, #222);
}

/* Textareas */
textarea {
    resize: vertical;
    min-height: 90px;
}

/* Better multiselect styling */
select[multiple] {
    height: auto;
    min-height: 100px;
    padding: 0.5em;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.95);
    overflow-y: auto;
}

/* Make selected options visible and styled */
select[multiple] option:checked {
    background-color: var(--clr-primary, #007cba);
    color: #fff;
}

/* Checkbox inline label */
input[type="checkbox"] + label,
label > input[type="checkbox"] {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-weight: normal;
}

.ff {
    margin-bottom: 1.5rem;
}


small {
    font-size: var(--fs-sm);
    color: var(--clr-dt-txt);
}

table {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
    line-height: 1.4
}

table td,
table th {
    padding: 15px 12px;
    vertical-align: middle;
    text-align: start
}

table th {
    font-size: 14px;
    font-weight: bold;
}

table tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.075);
}

thead tr {
    border-bottom: 2px solid rgba(0, 0, 0, 0.075);
}

tr.order-total {
    border: none;
}

tfoot {
    font-weight: bold;
}

tfoot .order-total td,
tfoot .shipping td {
    color: var(--clr-sec);
    font-size: 20px;
}


.emoji-rating>.emoji.active {
    background-color: var(--clr-acc);
    border-radius: 50%;
}

/* MARK: Helper Classes */
.center-vertically {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fwb {
    font-weight: bold;
}

.box {
    box-shadow: var(--bs);
    border-radius: 12px;
    padding: 20px;
    background-color: #ffffff96;
}

.blur-1 {
    filter: blur(1px);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.d-flex-center {
    display: flex;
    justify-content: center;
    align-content: center;
}

.cp {
    cursor: pointer;
}

.separator {
    border-bottom: 1px solid var(--clr-dt);
    margin-block: 2rem;
}

.separator-1 {
    border-bottom: 1px solid var(--clr-dt);
    margin-block: 1rem;
}

.separator--5 {
    border-bottom: 1px solid var(--clr-dt);
    margin-block: 0.5rem;
}

.separator-0 {
    border-bottom: 1px solid var(--clr-dt);
    margin-block: 0.1rem;
}


/* MARK: Header */

header {
    border-bottom: 1px dashed var(--clr-dt);
}

.header-logo {
    width: var(--sz-logo-w);
}

.top-header {
    background-color: var(--clr-sec);
    color: var(--clr-bg);
    justify-content: center;
    align-items: center;
}

header [class*=' dashicons-']::before,
header [class^=dashicons-]::before {
    border: 1px solid var(--clr-txt);
    border-radius: 50%;
    padding: 5px;
}

header svg {
    width: 30px;
    height: 30px;
    object-fit: contain;
}



/* MARK: Footer */

footer .row>* {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-social-icons a {
    font-size: 30px;
}

footer {
    border-top: 1px solid var(--clr-dt);
}

footer>p {
    color: #747474;
}

/* MARK: PlaceHolders */

::placeholder {
    font-family: inherit !important;
    font-weight: inherit !important;
    font-size: var(--fs-txt) !important;
    color: var(--clr-input-ph-txt) !important;
}

::-ms-input-placeholder {
    font-family: inherit !important;
    font-weight: inherit !important;
    font-size: var(--fs-txt) !important;
    color: var(--clr-input-ph-txt) !important;
}

::-webkit-input-placeholder {
    font-family: inherit !important;
    font-weight: inherit !important;
    font-size: var(--fs-txt) !important;
    color: var(--clr-input-ph-txt) !important;
}

::-moz-placeholder {
    font-family: inherit !important;
    font-weight: inherit !important;
    font-size: var(--fs-txt) !important;
    color: var(--clr-input-ph-txt) !important;
}

::-ms-placeholder {
    font-family: inherit !important;
    font-weight: inherit !important;
    font-size: var(--fs-txt) !important;
    color: var(--clr-input-ph-txt) !important;
}
/* MARK: Scroll Bar */
html {
    -ms-overflow-style: auto;
    scrollbar-width: thin;
    scrollbar-color: #E84343 transparent;
  }
  
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  
  ::-webkit-scrollbar-thumb {
    background-color: #E84343;
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
  }
  

/* MARK: Login/Signup */

#login-wrap .tabs {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

#login-wrap .tabs>button {
    width: 45%;
    background: none;
    color: var(--clr-sec);
}

#login-wrap .tabs>button.active {
    background-color: var(--clr-sec);
    color: var(--clr-bg);
}

#login-wrap {
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-content: center;
}


/* MARK: Mobile Bar */
#mobile-bar {

    position: fixed;
    z-index: 1010;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    border-radius: 12px 0 0 12px;


    background-color: var(--clr-bg);
    box-shadow: var(--bs-5);
    text-align: center;
    color: var(--clr-pri);

    display: flex;
    justify-content: space-around;
    flex-direction: column;
    gap: 30px;
}

@media (max-width: 768px) {

    #mobile-bar {
        flex-direction: row;

        right: unset;
        top: unset;
        transform: translateY(0);
        bottom: 0;
        left: 0;
        height: 55px;
        width: 100%;
        border-radius: 12px 12px 0 0;
    }
}

#mobile-bar svg {
    width: 25px;
    height: 25px;
}

#mobile-bar a {
    color: var(--clr-pri);
}