/*
 Theme Name:   Astra Child
 Theme URI:    https://scandibarn.com
 Description:  Astra Child Theme for Scandibarn
 Author:       Scandibarn
 Author URI:   https://scandibarn.com
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/

/* Fix logo display in child theme */
.custom-logo-link img.custom-logo {
    display: inline-block !important;
    width: 210px !important;
    height: 52px !important;
    max-width: 210px !important;
    filter: none !important;
    -webkit-filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.ast-site-identity .custom-logo-link {
    display: inline-flex !important;
    align-items: center !important;
}

/* Add your custom CSS below this line */

/* Main product card */
.edd_download {
  background: #fff;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

/* Hover effect */
.edd_download:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

/* Image */
.edd_download_image img {
  border-radius: 12px;
}

/* Title */
.edd_download_title {
  font-size: 16px;
  font-weight: 600;
  margin: 10px 0;
}

/* Price */
.edd_price {
  color: #2ecc71;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Button */
.edd-add-to-cart {
  display: inline-block;
  padding: 10px 16px;
  background: #000;
  color: #fff !important;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.edd-add-to-cart:hover {
  background: #333;
}

/* FORCE GRID (override EDD default) */
.edd_downloads_list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 25px !important;
}

/* REMOVE EDD FLOAT SYSTEM */
.edd_download {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

/* TABLET */
@media (max-width: 1024px) {
  .edd_downloads_list {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .edd_downloads_list {
    grid-template-columns: 1fr !important;
  }
}

/* 1. Remove Sidebar & Make Content Full Width (Astra Specific) */
.edd-checkout #secondary {
    display: none !important;
}

.edd-checkout #primary {
    width: 100% !important;
    margin: 0 auto !important;
    float: none !important;
}

/* 2. Modernize the Checkout Table */
#edd_checkout_cart {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 40px;
    border: 1px solid #eaeff2;
    border-radius: 8px;
    overflow: hidden;
}

#edd_checkout_cart th {
    background-color: #1a2b3c; /* ScandiBarn Navy */
    color: #ffffff;
    padding: 18px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
    border: none;
}

#edd_checkout_cart td {
    padding: 15px 20px;
    border-bottom: 1px solid #eaeff2;
    vertical-align: middle;
}

/* 3. Style the Personal Info Section */
#edd_checkout_form_wrap fieldset {
    border: 1px solid #eaeff2;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

#edd_checkout_form_wrap legend {
    font-size: 1.4em;
    font-weight: 700;
    color: #1a2b3c;
    margin-bottom: 20px;
    padding: 0 10px;
}

/* 4. Modern Input Fields */
#edd_checkout_form_wrap input[type="text"], 
#edd_checkout_form_wrap input[type="email"] {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

#edd_checkout_form_wrap input:focus {
    border-color: #1a2b3c;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(26, 43, 60, 0.1);
}

/* 5. Clean up the Purchase Button */
#edd_purchase_submit input[type="submit"] {
    background: #1a2b3c !important;
    color: #fff !important;
    padding: 15px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    border: none !important;
    cursor: pointer;
    transition: background 0.3s ease;
}

#edd_purchase_submit input[type="submit"]:hover {
    background: #2c455f !important;
}