/*
Theme Name: Akora
Theme URI: https://akorawear.com
Author: Virak
Author URI: https://virak.net
Description: We build all designs with love and the hope that our customers will succeed in their work.
Requires at least: 6.4
Tested up to: 6.4.3
Requires PHP: 8.1
Version: 1.0
License: © 2024 Akora. All rights reserved.
*/

/* fonts */
@font-face {
  font-family: "Shabnam-Light";
  font-weight: 400;
  font-style: normal;
  src: url("./assets/fonts/Shabnam-Light.woff") format("woff");
  src: url("./assets/fonts/Shabnam-Light.woff2") format("woff2");
}

@font-face {
  font-family: "Shabnam-Bold";
  font-weight: 700;
  font-style: normal;
  src: url("./assets/fonts/Shabnam-Bold.woff") format("woff");
  src: url("./assets/fonts/Shabnam-Bold.woff2") format("woff2");
}

body,
button {
  font-family: "Shabnam-Light";
}

* {
  font-family: "Shabnam-Light";
}

.fw-bold {
  font-family: "Shabnam-Bold";
}

/*  PREVENT TEXT SIZE SCALLING */

/* iPhone, portrait & landscape. */
@media all and (max-device-width: 480px) {
  html,
  body,
  p {
    text-size-adjust: none !important;
    -webkit-text-size-adjust: none !important;
    -moz-text-size-adjust: none !important;
    -ms-text-size-adjust: none !important;
  }
}

/* iPad, portrait & landscape. */
@media all and (min-device-width: 768px) and (max-device-width: 1024px) {
  html,
  body,
  p {
    text-size-adjust: none !important;
    -webkit-text-size-adjust: none !important;
    -moz-text-size-adjust: none !important;
    -ms-text-size-adjust: none !important;
  }
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: inherit;
}

/*
  1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

/*
  2. Remove default margin
*/
* {
  margin: 0;
}

/*
  Typographic tweaks!
  3. Add accessible line-height
  4. Improve text rendering
*/
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  color: var(--color-dark);
}

/*
  5. Improve media defaults
*/
img,
picture,
video,
canvas,
svg {
  max-width: 100%;
}

/*
  6. Remove built-in form typography styles
*/
input,
button,
textarea,
select {
  font: inherit;
}

/*
  7. Avoid text overflows
*/
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: auto;
  line-height: 2.4rem;
}

/*
  8. Create a root stacking context
*/
#root,
#__next {
  isolation: isolate;
}

html {
  box-sizing: border-box;
}

.btn-check:focus + .btn,
.btn:focus {
  box-shadow: none;
}

figure {
  margin: 0;
}

/* Typography */
html {
  font-size: 62.5%;
}

/* root */
:root {
  /* font size */
  --fs-p: 1.3rem;
  --fs-title: 2rem;
  --h1: 2rem;
  --fs-p-d: 1.4rem;

  /* colors */
  --color-primary: #0a58ca;
  --color-dark: #141414;
  --bg-box: #efefef;

  /* border radius */
  --radius: 16px;

  /* transition */
  --transition: all ease 0.3s;
}

body {
  background: #fff;
  font-size: var(--fs-p);
}

p {
  font-size: var(--fs-p);
  color: var(--color-dark);
}

h1 {
  font-size: var(--h1);
  color: var(--color-dark);
}

h2 {
  font-size: var(--fs-title);
  color: var(--color-dark);
}

ul {
  margin: 0;
  padding: 0;
}

/* root class */
.fs-p {
  font-size: var(--fs-p);
}

.img--fluid {
  width: 100% !important;
  height: 100% !important;
}

.fs-title {
  font-size: var(--fs-title);
}

.color--primary {
  color: var(--color-primary);
}

.color--light {
  color: var(--color-dark);
}

.radius {
  border-radius: var(--radius);
}

.bg--box {
  background: var(--bg-box);
}

.mt-6 {
  margin-top: 5rem;
}

@media screen and (min-width: 992px) {
  body {
    font-size: var(--fs-p-d);
  }

  p {
    font-size: var(--fs-p-d);
  }

  .fs-p {
    font-size: var(--fs-p-d);
  }

  .mt-6 {
    margin-top: 6rem;
  }
}

/*------------------ navbar desktop ------------------*/
.desktop-navbar {
  background: #ffffff;
  box-shadow: 0 4px 15px 4px rgba(0, 0, 0, 0.05);
  border-radius: 0 0 16px 16px;
  height: 90px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.menu-nav li.menu-item:last-child {
  margin-left: 0 !important;
}

.icon-btn {
  background: var(--bg-box);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 500px;
}

.icon-btn a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-counter {
  width: 20px;
  height: 20px;
  font-size: 12px;
  position: absolute;
  top: 0;
  right: -15%;
  background: var(--color-primary);
  color: #fff;
  clip-path: circle();
  display: flex;
  align-items: center;
  justify-content: center;
}

#offcanvasTop {
  background: var(--bg-box);
  height: max-content;
  margin: 0 auto;
  width: 60%;
  border-radius: var(--radius);
}

#search-desktop {
  width: 100%;
  background: #f6f6f6;
  border: none;
  padding: 2rem;
  border-radius: var(--radius);
  font-size: 2.4rem;
}

/*------------------ navbar mobile ------------------*/
.mobile-navbar {
  background: var(--bg-box);
  box-shadow: 0 4px 15px 4px rgba(0, 0, 0, 0.05);
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.canvas--menu .icon-btn {
  width: 50px;
  height: 50px;
}

.head-title {
  font-family: "Allerta Stencil", sans-serif;
  font-size: 2.4rem;
}

.offcanvas__menu {
  background: var(--bg-box);
  width: 100% !important;
}

.offcanvas__menu .offcanvas-footer {
  background: #fff;
}

.offcanvas__menu .offcanvas-body li.menu-item {
  background: var(--bs-light);
  padding: 1.5rem 2rem;
  margin: 10px 0;
  border-radius: 8px;
}

.category-menu-item {
  padding: 1.5rem 2rem;
}

.category-menu-item::before {
  content: "";
  display: inline-flex;
  width: 20px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 50px;
  margin-left: 8px;
}

@media screen and (max-width: 992px) {
  .menu-item-has-children ul.dropdown-menu {
    background-color: unset !important;
  }
}

/*------------------ category ------------------*/
article.category a figure img {
  filter: brightness(0.4);
  aspect-ratio: 4/3;
  object-fit: cover;
  /* firefox fixed */
  width: 100%;
  height: 100%;
}

.category figcaption {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  width: 80%;
  text-align: center;
}

/*------------------ products ------------------*/
h2.section-title::before,
h2.section-title::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 50px;
}

.post figure img {
  aspect-ratio: 2/2.6;
  object-fit: cover;
  /* firefox fixed */
  width: 100%;
  height: 100%;
}

article.post {
  padding: 1rem;
  border: 1px solid #dfdfdf;
  border-radius: 24px;
}

/*------------------ mobile bottom navigetion ------------------*/
.bottom-navigetion {
  background: var(--bg-box);
  border-radius: var(--radius);
  width: 95%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: inherit;
  padding: 0 12px;
  gap: 15px;
}

.bottom-navigetion-wrapper {
  width: 100%;
  height: 90px;
  position: fixed;
  bottom: 10px;
  right: 0;
  z-index: 0;
}

.bottom-navigetion__items {
  width: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-flow: column;
  text-align: center;
}

.bottom-nav-label {
  margin-top: 5px;
}

.bottom-nav-label span {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search__input {
  height: 122px;
  background: var(--bg-box);
  width: 100%;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s all ease-out;
}

.offcanvas-bottom {
  bottom: -1px;
}

.search__input input {
  font-size: 1.6rem;
  width: 90%;
  padding: 2rem;
  background: #f6f6f6;
  border: 0;
  border-radius: var(--radius);
}

/*------------------ hovers ------------------*/
.menu-item a,
.icon-btn,
.category figcaption span,
article.post {
  transition: var(--transition);
}

.menu-item a:hover {
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1.8rem;
}

.icon-btn:hover {
  background: var(--color-primary);
  width: 48px;
  height: 48px;
}

.icon-btn:hover svg {
  filter: invert(1);
}

.category:hover {
  border: 2px solid var(--color-primary);
}

.category:hover figcaption span {
  color: var(--color-primary);
  font-size: 2.4rem;
}

article.post:hover {
  padding: 3rem;
}

article.post:hover figure {
  border: 3px solid var(--color-primary);
}

.more_btn:hover,
.more_btn:focus,
.more_btn:active {
  background-color: #fff;
  color: #000;
}

.more_btn {
  background-color: var(--color-primary);
  height: 50px;
  color: #000;
  min-width: 100%;
  text-align: center;
  border-radius: 12px;
}

@media screen and (min-width: 992px) {
  .more_btn {
    min-width: 350px;
  }
}

/* svsw buttons */
.svsw-frontend-wrap {
  border-top: 1px solid var(--light-bg);
  border-bottom: 1px solid var(--light-bg);
  padding: 1rem 0;
}

.svsw-wrap label.attr-name {
  font-weight: bold;
  padding-right: 0 !important;
}

.svsw-attr-wrap .svsw-swatch.svsw-color-image {
  border-radius: 16px;
  box-shadow: 0px 0px 11px #00000026;
}

.svsw-attr-wrap .svsw-type-button span {
  border-radius: 8px !important;
  background-color: #fff !important;
  color: #262626 !important;
  border: 1px solid #e5e5e5 !important;
  font-size: 14px !important;
}

.svsw-reset.reset_variations {
  background: #f5f5f5 !important;
  padding: 8px 16px !important;
}

.svsw-swatch.svsw-btn.svsw-selected {
  border-color: unset !important;
  background-color: var(--color-primary) !important;
  color: #fff !important;
  font-weight: 700;
}

.svsw-swatch.svsw-selected {
  border-color: var(--color-primary) !important;
}

.svsw-attr-wrap .svsw-type-button {
  margin-top: 1.5rem;
}

.single_variation_wrap,
.woocommerce-variation-add-to-cart {
  width: 100% !important;
}

.select2-results__option[aria-selected],
.select2-results__option[data-selected] {
  color: #000;
}

/*------------------ categories ------------------*/
.categories {
  margin-bottom: 60px;
}

.category-wrapper {
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
  border-radius: 20px;
  margin-top: 80px;
  width: 100%;
}

.category-wrapper figcaption {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
}

.category-wrapper figure {
  background-color: #dfdfdf;
  height: 100%;
  border-radius: 20px;
}

.category-wrapper figure img {
  aspect-ratio: 3.5 / 4;
  object-fit: cover;
  position: absolute;
  bottom: 0;
  left: 20px;
  max-width: 150px;
  border-radius: 24px;
}

@media sreen and (min-width: 992px) {
  .category-wrapper {
    height: 130px;
  }

  .category-wrapper figure img {
    max-width: 165px;
  }
}

.woocommerce-product-details__short-description {
  margin: 24px 0;
}

.woocommerce-product-details__short-description table {
  display: table !important;
  width: 100% !important;
  border-collapse: collapse !important;
  margin-top: 24px;
  border-collapse: collapse;
  border: 1px solid #dfdfdf;
  overflow: hidden;
  font-size: 12px;
  direction: rtl;
}

.woocommerce-product-details__short-description table tr:first-child {
  font-weight: bold;
}

.woocommerce-product-details__short-description table td,
.woocommerce-product-details__short-description table th {
  border: 1px solid #dfdfdf;
  padding: 8px;
  text-align: center;
}

@media (max-width: 640px) {
  .woocommerce-product-details__short-description table,
  .woocommerce-product-details__short-description tbody,
  .woocommerce-product-details__short-description tr,
  .woocommerce-product-details__short-description td {
    display: block;
    width: 100%;
  }

  .woocommerce-product-details__short-description table tr {
    margin-bottom: 1rem;
    border: 1px solid #dfdfdf;
    border-radius: 8px;
    padding: 0.5rem;
  }

  .woocommerce-product-details__short-description table td {
    text-align: right;
    position: relative;
  }

  .woocommerce-product-details__short-description table td::before {
    content: attr(data-label);
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    font-weight: bold;
    color: #dfdfdf;
  }

  .woocommerce-product-details__short-description table tr:first-child {
    display: none;
  }
}

.woocommerce-product-details__short-description tr {
  display: table-row !important;
}

.woocommerce-product-details__short-description td {
  display: table-cell !important;
  border: 1px solid #dfdfdf;
  padding: 8px;
  text-align: center;
  vertical-align: middle;
}
