/* Theme Name: PlanHolder 
Theme URI: https://divicake.com/ 
Description: PlanHolder-web-child
Version: 1.0 
Author: Urho Rättel 
Author URI: https://www.facebook.com/urho.rattel
Template: Divi */

/* ============================================================
   FONT FACE
============================================================ */

@font-face {
  font-family: 'TT Chocolates';
  src:
    url('/wp-content/themes/planholder/fonts/TT_Chocolates_Regular.woff2') format('woff2'),
    url('/wp-content/themes/planholder/fonts/TT_Chocolates_Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Chocolates';
  src:
    url('/wp-content/themes/planholder/fonts/TT_Chocolates_Medium.woff2') format('woff2'),
    url('/wp-content/themes/planholder/fonts/TT_Chocolates_Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   BASE TYPOGRAPHY
============================================================ */

html {
  font-size: 100%;
}

body {
  font-family: 'TT Chocolates', sans-serif;
  font-weight: 400;
  font-size: calc(0.85rem + (18 - 12) * (100vw - 320px) / (2560 - 320));
}

/* ============================================================
   GLOBAL FONT FAMILY
============================================================ */

p,
.body,
.body-lg,
h1,
h2,
h3,
h4,
h5,
h6,
nav {
  font-family: 'TT Chocolates', sans-serif;
  font-weight: 500;
}

/* ============================================================
   RESPONSIVE TYPOGRAPHY
============================================================ */

h1,
.et_pb_section h1,
.et_pb_row h1,
.et_pb_column h1,
.et_pb_text h1,
#page-container h1 {
  font-family: 'TT Chocolates', sans-serif !important;
  font-size: calc(2.625rem + (76 - 42) * (100vw - 320px) / (2560 - 320));
  font-weight: 400 !important;
}

h2,
.et_pb_section h2,
.et_pb_row h2,
.et_pb_column h2,
.et_pb_text h2,
#page-container h2,
h2.et_pb_module_header,
.et_pb_module h2.et_pb_module_header {
  font-family: 'TT Chocolates', sans-serif !important;
  font-size: calc(2.375rem + (58 - 38) * (100vw - 320px) / (2560 - 320));
  font-weight: 400 !important;
}

h3,
.et_pb_section h3,
.et_pb_row h3,
.et_pb_column h3,
.et_pb_text h3,
#page-container h3,
h3.et_pb_module_header,
.et_pb_module h3.et_pb_module_header {
  font-family: 'TT Chocolates', sans-serif !important;
  font-size: calc(1.75rem + (42 - 28) * (100vw - 320px) / (2560 - 320));
  font-weight: 400 !important;
}

h4,
.et_pb_section h4,
.et_pb_row h4,
.et_pb_column h4,
.et_pb_text h4,
#page-container h4 {
  font-family: 'TT Chocolates', sans-serif !important;
  font-size: calc(1.375rem + (32 - 22) * (100vw - 320px) / (2560 - 320));
  font-weight: 400 !important;
}

.body-lg {
  font-size: calc(1rem + (24 - 16) * (100vw - 320px) / (2560 - 320));
}

p,
.body {
  font-size: calc(0.85rem + (18 - 12) * (100vw - 320px) / (2560 - 320));
}

nav {
  font-size: calc(0.625rem + (14 - 10) * (100vw - 320px) / (2560 - 320));
  font-weight: 500;
}

/* ============================================================
   FONT UTILITIES
============================================================ */

.font-medium,
.et_pb_module .font-medium,
.et_pb_module p.font-medium,
.et_pb_text_inner .font-medium,
.et_pb_text_inner p.font-medium {
  font-family: 'TT Chocolates', sans-serif !important;
  font-weight: 500 !important;
}

/***header-nav-link-START***/

/* Navigatsiooni lingi alumine joon 4 px kaugusel tekstist */
.et_pb_row .et_pb_menu__menu li a {
    text-decoration: none;
    color: #000000 !important;
    position: relative;
    font-weight: 500;
}

.et_pb_row .et_pb_menu__menu li a:hover,
.et_pb_row .et_pb_menu__menu li.current-menu-item a {
    text-decoration: underline;
    text-decoration-color: #C1111E;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}
/***header-nav-link-END***/

/***nav-link-gap-START***/
.et_pb_row .et_pb_menu__menu li {
    padding-left: 2px;
    padding-right: 2px;
}
/***nav-link-gap-END***/

/***hover-zoom-scc class - .et-zoom-in START***/
.et-zoom-in.et_pb_image:hover img,
.et-zoom-in .et_pb_image_wrap:hover img,
.et-zoom-in a:hover img {
    transform: scale(1.1);
    transition: all 3s 0s ease;
}

.et-zoom-in,
.et-zoom-in a {
    overflow: hidden;
}

.et-zoom-in.et_pb_image img,
.et-zoom-in .et_pb_image_wrap img,
.et-zoom-in a img {
    transition: all 1s 0s ease;
}
/***hover-zoom-scc class - .et-zoom-in END***/

/* WooCommerce Add To Cart Full Width START */
.woocommerce div.product form.cart .single_add_to_cart_button {
    width: 100%;
    justify-content: center;
    display: flex;
}
/* WooCommerce Add To Cart Full Width END */

/* Kui kasutatakse quantity välja */
.woocommerce div.product form.cart {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/*** Hide image titles on hover START***/
img {
    pointer-events: none;
}
/*** Hide image titles on hover END***/

/* ============================================================
   Font MEDIUM
============================================================ */
.font-medium {
    font-weight: 500 !important;
}