/*
 Theme Name:     Divi Child Theme
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/
 
/* =Theme customization starts here
------------------------------------------------------- */

.logo .text-accent {
  color: var(--gcid-primary-color);
}
.text-divider .et_pb_text_inner {
  display: flex;
  align-items: center;
  gap: 10px;
}
.text-divider p:before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background-color: #fbb03b;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.text-divider p {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  margin: 0;
  padding-left: 40px;
  position: relative;
  text-transform: uppercase;
}
.custom-list-check ul, 
.custom-list-star ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
.custom-list-check ul li, 
.custom-list-star ul li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 15px;
  font-size: 16px;     
  color: #444444;      
  line-height: 1.6em;
  background-repeat: no-repeat;
  background-position: left 2px;
  background-size: 20px 20px;
}
.custom-list-check ul li {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbb03b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='9 12 11 14 15 10'%3E%3C/polyline%3E%3C/svg%3E");
}
.custom-list-star ul li {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fbb03b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z'/%3E%3Cpath d='M20 2v4'/%3E%3Cpath d='M22 4h-4'/%3E%3Ccircle cx='4' cy='20' r='2'/%3E%3C/svg%3E");
}
/* Siltide (tags) stiilis nimekiri */
.custom-tag-list ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.custom-tag-list ul li {
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  padding: 8px 20px;
  background-color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0 !important;
}

/* --------------------------------------------------------- */
/* CUSTOM PRODUCT GRID STYLES                                */
/* --------------------------------------------------------- */
.custom-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
  gap: 30px;
}
.custom-product-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column; 
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, color 0.3s ease;
  position: relative;
  cursor: pointer;
}
.custom-product-card:hover {
  border-color: #fcb13c;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.custom-product-card > a {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid #e0e0e0;
}
.custom-product-image {
  width: 100%;
  aspect-ratio: 4/3; 
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.custom-product-card:hover .custom-product-image {
  transform: scale(1.05);
}
.custom-product-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; 
}
.custom-product-title {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  margin-top: 0 !important;
  line-height: 1.3em;
}
.custom-product-title a {
  color: #111111;
  text-decoration: none;
}
.custom-product-tagline {
  font-size: 15px;
  color: #666666;
  line-height: 1.6em;
  margin-bottom: 20px;
}
.custom-product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto; 
}
.custom-product-price {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #111111;
}
.custom-product-link {
  font-size: 14px;
  font-weight: 700;
  color: #111111;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}
.custom-product-link:hover {
  color: #fbb03b;
}
.custom-product-card .custom-product-link svg {
  transition: transform 0.2s ease;
}
.custom-product-card:hover .custom-product-link svg {
  transform: translateX(3px);
}
.single-toode .custom-product-title {
  font-size: 18px!important;
}
.single-toode .custom-product-tagline {
  font-size: 12px;
  margin-bottom: 0;
}
.home .custom-product-grid .custom-product-price,
.single-toode .custom-product-footer {
  display: none;
}
.fp-sec-additional .et_pb_icon {
  align-self: start;
}
.fp-sec-additional ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
.fp-sec-additional ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 5px;
  font-size: 14px;
  color: #444444;
  line-height: 1.6em;
  background-repeat: no-repeat;
  background-position: left 2px;
  background-size: 17px 17px;
}
.fp-sec-additional ul li {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbb03b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='9 12 11 14 15 10'%3E%3C/polyline%3E%3C/svg%3E");
}
.fp-sec-additional .et_pb_blurb_container {
  padding-left: 0;
}

/* --------------------------------------------------------- */
/* CUSTOM BLOG POSTS STYLES                                */
/* --------------------------------------------------------- */
.blog-sec .custom-product-image {
  aspect-ratio: 16/10;
}
.single-post h2 {
  margin: 40px 0 10px 0;
}
.single-post h3 {
  margin: 20px 0 10px 0;
}

/* --------------------------------------------------------- */
/* CONTACT FORM 7 STYLES                                     */
/* --------------------------------------------------------- */
.wpcf7-form br {
    display: none;
}
.wpcf7-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.wpcf7-form > div {
    margin-bottom: 5px;
}
.your-name,
.your-phone,
.select-laius,
.select-pikkus,
.select-materjal {
    width: calc(50% - 10px);
}
.your-email, .your-message {
    width: 100%; 
}
.wpcf7-form p.label {
  padding-bottom: 0;
  width: 100%;
}
.wpcf7-form label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #111111;
    margin-bottom: 8px;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 15px;
    color: #333333;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    border-color: #fbb03b; 
    box-shadow: 0 0 0 3px rgba(251, 176, 59, 0.15);
    outline: none;
}
.wpcf7-form textarea {
    height: 120px;
    resize: vertical;
}
.wpcf7-form > p:last-of-type {
    width: 100%;
    margin-bottom: 0;
}
.wpcf7-form input[type="submit"] {
    width: 100%;
    background-color: #fbb03b;
    color: #111111;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='22' y1='2' x2='11' y2='13'%3E%3C/line%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'%3E%3C/polygon%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(50% + 75px) center; 
}
.wpcf7-form input[type="submit"]:hover {
    background-color: #eaa02a;
}
.wpcf7-spinner {
    position: absolute;
    margin-top: 17px;
}
.wpcf7 form .wpcf7-response-output {
  margin-left: 0;
  margin-right: 0;
}
.wpcf7 form.sent .wpcf7-response-output {
  background-color: #f7f3eb;
  border: 1px solid #ebebed;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

/*** Responsive Styles Large Desktop And Above ***/
@media all and (min-width: 1405px) {
  
}
 
/*** Responsive Styles Standard Desktop Only ***/
@media all and (min-width: 1100px) and (max-width: 1405px) {
 
}

@media only screen and (min-width: 981px) {
  li.mobile-cta-btn {
    display: none !important;
  }
}

@media only screen and (max-width: 980px) {
  .full-width-mobile-menu .et_pb_menu__wrap {
    justify-content: flex-end;
  }
  .full-width-mobile-menu .mobile_menu_bar {
    background-color: #ffffff !important;
    border: 1px solid #cccccc !important;
    border-radius: 4px !important;
    padding: 5px 8px !important;
    display: inline-block !important;
  }

  .full-width-mobile-menu .mobile_menu_bar::before {
    color: #111111 !important;
    position: relative !important;
    top: 2px !important;
  }

  .full-width-mobile-menu .mobile_nav.opened .mobile_menu_bar::before {
    content: '\4d' !important;
  }
  .full-width-mobile-menu .et_mobile_menu {
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    position: fixed !important;
    margin-left: 0 !important;
    box-sizing: border-box;
    padding: 10px 20px;
    top: 65px;
  }
  .full-width-mobile-menu .et_mobile_menu a {
    border-bottom: 1px solid #e0e1e5;
    padding-left: 0;
    padding-right: 0;
  }
  .full-width-mobile-menu .et_mobile_menu a:hover {
    background-color: unset;
  }
  li.mobile-cta-btn {
    border-bottom: none !important;
    padding: 20px 0 10px !important;
  }

  li.mobile-cta-btn a {
    background-color: #fbb03b !important;
    color: #111111 !important;
    text-align: center !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    border-radius: 4px;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  .custom-product-grid {
    grid-template-columns: repeat(2, 1fr)!important;
    gap: 20px;
  }
}
 
/*** Responsive Styles Tablet Only ***/
@media all and (min-width: 768px) and (max-width: 980px) {
 
}
 
/*** Responsive Styles Smartphone Only ***/
@media all and (max-width: 767px) {
  .custom-product-grid {
    grid-template-columns: 1fr!important;
  }
  .custom-product-content {
    padding: 20px;
  }
}
 
/*** Responsive Styles Smartphone Portrait ***/
@media all and (max-width: 479px) {
    img.alignright {
        display: block;
        float: none;
        margin: 0 0 1em 0;
    }
    .your-name, .your-phone {
        width: 100%; /* Mobiilis paneme Nime ja Telefoni täislaiuses üksteise alla */
    }
}