/* Cart Page Styles - Güneydoğu Dental
   Matches site design system with primary #005197, accent #ff8108
*/

/* ===========================
   CART LAYOUT & STRUCTURE
=========================== */

.cart-main {
  background: #f8fafc;
  min-height: 100vh;
  padding: 30px 0 60px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}

/* ===========================
   CART ITEMS SECTION
=========================== */

.cart-items-section {
  background: #ff7f080d;
  border: 2px solid #ff8108;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cart-items-section .section-title {
  color: #ff8108;
  margin: 0 0 40px 0 !important;
  font-weight: 700;
  padding-bottom: 15px;
  border-bottom: 3px solid #ff810833;
  text-shadow: 0 2px 4px rgba(255, 129, 8, 0.1);
  position: relative;
  justify-content: flex-start;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
}

.section-info-icon {
  color: #ff8108;
  font-size: 2rem !important;
  transition: all 0.3s ease;
}


.section-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ff8108, #ff9a2b);
  border-radius: 2px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Individual Cart Item */
.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 25px;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f5 100%);
  border-radius: 12px;
  border: 2px solid #ffcc99;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 6px 20px rgba(255, 129, 8, 0.08);
  overflow: hidden;
}

/* Empty Cart Message Styles */
.empty-cart-message {
  text-align: center;
  padding: 60px 30px;
  background: linear-gradient(135deg, #fff8f5 0%, #ffffff 100%);
  border-radius: 12px;
  border: 3px dashed #ff8108;
  margin: 20px 0;
  box-shadow: 0 8px 25px rgba(255, 129, 8, 0.1);
}

.empty-cart-icon {
  width: 100px;
  height: 100px;
  border-radius: 50px;
  background: linear-gradient(135deg, #ff8108, #ffab47);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  box-shadow: 0 8px 30px rgba(255, 129, 8, 0.3);
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.empty-cart-icon i {
  font-size: 2.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.empty-cart-message h3 {
  color: #ff8108;
  font-size: 1.7rem;
  margin: 0 0 15px 0;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(255, 129, 8, 0.1);
}

.empty-cart-message p {
  color: #8b5a2b;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.empty-cart-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.empty-cart-actions .btn-primary {
  background: #ff8108;
}

.cart-item:hover {
  position: relative;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 129, 8, 0.15);
  border-color: #ff8108;
  background: linear-gradient(135deg, #ffffff 0%, #fffbf8 100%);
}

.cart-item::before {
  content: '';
  position: absolute;
  left: 0;
  height: 5px;
  bottom: 0;
  width: 8%;
  background: linear-gradient(180deg, #ff8108, #ffab47);
  border-radius: 0 5px 5px 0;
  left: 0;
  transition: 0.3s all ease;
  border-radius: 0 4px 0 0;
}

.cart-item:hover::before {
  width: 15%;
}

.item-image {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff8f5, #ffefde);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffcc99;
  box-shadow: 0 4px 15px rgba(255, 129, 8, 0.1);
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.cart-item:hover .item-image img {
  transform: scale(1.05);
}

.item-details {
  flex: 1;
}

.item-title {
  font-size: 1.1rem;
  color: #d97706;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(217, 119, 6, 0.1);
}

.item-sku {
  color: #92400e;
  font-size: 0.85rem;
  margin-bottom: 12px;
  font-weight: 600;
  background: #fef3c7;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}

.item-price {
  color: #ff8108;
  font-size: 1.4rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(255, 129, 8, 0.2);
}

.item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #fff8f5);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(255, 129, 8, 0.1);
  transform: translateZ(0);
  /* Force GPU acceleration to prevent flicker */
  backface-visibility: hidden;
  /* Prevent flickering during transforms */
}

.qty-btn {
  background: linear-gradient(135deg, #ff8108, #e57000);
  color: white;
  border: none;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  outline: 0 !important;
  border: 1px solid #ff8108;
}

.qty-btn:hover {
  background: linear-gradient(135deg, #e57000, #cc5e00);
  box-shadow: 0 4px 12px rgba(255, 129, 8, 0.3);
}

.qty-btn:active {
  transform: scale(0.95);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.qty-input {
  width: 45px;
  height: 42px;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ff8108;
  background: linear-gradient(135deg, #fffbf8, #fff8f5);
  text-shadow: 0 1px 2px rgba(255, 129, 8, 0.1);
  outline: 0 !important;
  border-top: 1px solid #ff8108;
  border-bottom: 1px solid #ff8108;

}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  margin: 0;
}

/* Firefox */
.qty-input[type=number] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

.remove-btn {
  background: none;
  border: none;
  color: #ff8108;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #ff8108;
}

.remove-btn:hover {
  background: #fef2f2;
  color: #dc2626;
  transform: scale(1.05);
}

.cart-actions #clear-cart {
  background: white;
  border: 2px solid #ff8108;
  color: #ff8108;
}

#clear-cart:hover {
  background: #ff8108;
  color: white;
}

/* ===========================
   EMPTY CART STATE
=========================== */

.empty-state {
  text-align: center;
  padding: 60px 30px;
}

.empty-icon {
  width: 120px;
  height: 120px;
  border-radius: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  box-shadow: 0 8px 30px rgba(0, 81, 151, 0.2);
}

.empty-icon i {
  font-size: 3rem;
  color: white;
}

.empty-state h3 {
  color: var(--primary);
  font-size: 1.8rem;
  margin: 0 0 15px 0;
  font-weight: 600;
}

.empty-state p {
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   ORDER SUMMARY
=========================== */

.order-summary {
  background: #00519708;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid #005197;
  position: sticky;
  top: 30px;
  height: fit-content;
}

.order-summary h2 {
  color: #005197;
  font-size: 1.4rem;
  margin: 0 0 25px 0;
  font-weight: 700;
  padding-bottom: 15px;
  border-bottom: 3px solid #00519733;
  text-shadow: 0 2px 4px rgba(0, 81, 151, 0.1);
  position: relative;
}

.order-summary h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #005197, #0066cc);
  border-radius: 2px;
}

.summary-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed #a5b4fc;
  font-size: 1rem;
  color: #1e3a8a;
  font-weight: 500;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row span:last-child {
  font-weight: 700;
  color: #005197;
}

.text-success {
  color: #16a34a !important;
}

.free-shipping-info {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #bbf7d0;
  text-align: center;
}

.free-shipping-info i {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.shipping-progress {
  margin-top: 15px;
}

.progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: #ff8108;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.9rem;
  color: #16a34a;
  font-weight: 600;
}

/* ===========================
   COUPON SECTION
=========================== */

.coupon-section {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-radius: 12px;
  padding: 22px;
  border: 2px solid #7dd3fc;
  box-shadow: 0 4px 15px rgba(0, 81, 151, 0.08);
}

.coupon-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #005197;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.coupon-header i {
  color: #0ea5e9;
  font-size: 1.2rem;
}

.coupon-input {
  display: flex;
  gap: 12px;
}

.coupon-input input {
  padding: 14px;
  border: 2px solid #7dd3fc;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #1e3a8a;
  font-weight: 500;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  transition: all 0.3s ease;
  width: 70%;
}

.coupon-input input:focus {
  outline: none;
  border-color: #005197;
  box-shadow: 0 0 0 3px rgba(0, 81, 151, 0.1);
}

.coupon-input button {
  padding: 14px;
  background: white;
  color: #7dd4fc;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #7dd3fc;
  width: 30%;
}

.coupon-input button:hover {
  background: #7dd4fc;
  color: var(--text);
}

.coupon-message {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.coupon-message.success {
  background: #dcfce7;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.coupon-message.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* ===========================
   INVOICE SECTION (Cart)
=========================== */

/* ===========================
   SHIPPING ADDRESS SECTION (Cart)
=========================== */

.cart-address-section {
  margin-top: 22px;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 129, 8, 0.06) 100%);
  border: 2px solid #ff8108;
  border-radius: 15px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.cart-address-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ff8108;
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.cart-address-header i {
  color: #ff8108;
  font-size: 1.1rem;
}

.cart-address-helper {
  font-size: 0.92rem;
  color: #475569;
  margin-bottom: 14px;
  line-height: 1.35;
}

.cart-address-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.cart-address-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-address-field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ff8108;
}

.cart-address-field input,
.cart-address-field select,
.cart-address-field textarea {
  padding: 12px;
  border: 2px solid #ff7f0871;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 500;
  background: #ffffff;
  transition: all 0.2s ease;
  font-family: 'Poppins', "sans-serif";
  font-weight: 300;
}

.cart-address-field input,
.cart-address-field select {
  height: 48px;
}

/* Custom select (branded dropdown) */
.cart-address-section .gdd-select,
.invoice-section .gdd-select {
  position: relative;
  width: 100%;
}

.cart-address-section select.gdd-native-select,
.invoice-section select.gdd-native-select {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.cart-address-section .gdd-select__button,
.invoice-section .gdd-select__button {
  position: relative;
  width: 100%;
  height: 48px;
  padding: 0 44px 0 12px;
  border: 2px solid #ff7f0871;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-address-section .gdd-select__button:focus,
.invoice-section .gdd-select__button:focus {
  outline: none;
  border-color: #ff8108;
  box-shadow: 0 0 0 3px #ff7f0840;
}

.cart-address-section .gdd-select__button[aria-expanded="true"],
.invoice-section .gdd-select__button[aria-expanded="true"] {
  border-color: #ff8108;
}

.cart-address-section .gdd-select__button:disabled,
.invoice-section .gdd-select__button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.cart-address-section .gdd-select__label,
.invoice-section .gdd-select__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-address-section .gdd-select__button::after,
.invoice-section .gdd-select__button::after {
  content: '';
  position: absolute;
  right: 12px;
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  opacity: 0.95;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff8108' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}

.cart-address-section .gdd-select__list,
.invoice-section .gdd-select__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #ffffff;
  border: 2px solid #ff8108;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  padding: 6px;
  z-index: 9999;
  max-height: 280px;
  overflow: auto;
}

.cart-address-section .gdd-select__option,
.invoice-section .gdd-select__option {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-address-section .gdd-select__option:hover,
.invoice-section .gdd-select__option:hover {
  background: rgba(255, 129, 8, 0.10);
}

.cart-address-section .gdd-select__option[aria-selected="true"],
.invoice-section .gdd-select__option[aria-selected="true"] {
  background: rgba(255, 129, 8, 0.14);
  border: 1px solid rgba(255, 129, 8, 0.35);
}

.cart-address-field textarea {
  min-height: 92px;
  resize: vertical;
}

.cart-address-field input:focus,
.cart-address-field select:focus,
.cart-address-field textarea:focus {
  outline: none;
  border-color: #ff8108;
  box-shadow: 0 0 0 3px #ff7f0840;
}

.cart-address-grid:nth-of-type(2) {
  grid-template-columns: 1fr !important;
}

.cart-address-field select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.cart-address-inline-actions {
  display: flex;
  justify-content: flex-end;
}

.cart-address-form {
  margin-top: 14px;
}

.cart-address-form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
  flex-wrap: wrap;
}

.cart-address-message {
  flex: 1;
  min-width: 220px;
  font-size: 0.92rem;
  color: #475569;
}

/* Scoped button polish for the address section (keeps global button styles intact elsewhere) */
.cart-address-section .btn {
  border-radius: 12px;
  font-weight: 700;
  padding: 10px 14px;
  font-size: 0.95rem;
  line-height: 1.1;
}

.cart-address-section .btn.btn-primary {
  background: #ff8108;
  border: 2px solid #ff8108;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(255, 129, 8, 0.22);
}

.cart-address-section .btn.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(0.96);
}

.cart-address-section .btn.btn-secondary {
  background: #ffffff;
  border: 2px solid #005197;
  color: #005197;
}

.cart-address-section .btn.btn-secondary:hover {
  background: #005197;
  color: #ffffff;
  transform: translateY(-1px);
}

.cart-address-section .btn.btn-outline {
  border-color: #ff8108;
  color: #ff8108;
  height: 48px !important;
}

.cart-address-section .btn i {
  font-size: 0.95em;
}

.cart-address-section .btn.btn-outline:hover {
  background: #ff8108;
  color: #ffffff;
}

@media (max-width: 768px) {
  .cart-address-grid {
    grid-template-columns: 1fr;
  }

  .cart-address-form-actions {
    justify-content: flex-start;
  }
}

.invoice-section {
  background: linear-gradient(135deg, #ffffff 0%, rgba(0, 81, 151, 0.06) 100%);
  border-radius: 15px;
  padding: 18px;
  border: 2px solid #ff8108;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.cart-items-section .invoice-section {
  margin-top: 16px;
}

.invoice-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ff8108;
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.invoice-header i {
  color: #ff8108;
  font-size: 1.15rem;
}

.invoice-helper {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 14px;
  line-height: 1.35;
}

.invoice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.invoice-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.invoice-field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ff8108;
}

/* Compact, professional buttons inside invoice section */
.invoice-section .btn {
  border-radius: 12px;
  font-weight: 700;
  padding: 10px 14px;
  font-size: 0.95rem;
  line-height: 1.1;
}

.invoice-field input,
.invoice-field select,
.invoice-field textarea {
  padding: 12px;
  border: 2px solid #ff7f0871;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 500;
  background: #ffffff;
  transition: all 0.2s ease;
  font-family: 'Poppins';
  font-weight: 300 !important;
}

.invoice-field textarea {
  min-height: 92px;
  resize: vertical;
  margin-bottom: 25px;
}

.invoice-field input:focus,
.invoice-field select:focus,
.invoice-field textarea:focus {
  outline: none;
  border-color: #ff8108;
  box-shadow: 0 0 0 3px #ff7f0840;
}

.invoice-field select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.invoice-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .invoice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:425px) {
  
  button.gdd-select__button {
    width: 100% !important;
    font-size: 14px !important;
    padding-right:0 !important;
  }

}


/* ===========================
   TOTAL & CHECKOUT
=========================== */

.summary-total {
  background: linear-gradient(135deg, #005197, #004080);
  color: white;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  margin-bottom: 0;
  box-shadow: 0 4px 15px rgba(0, 81, 151, 0.15);
}

.summary-total::before {
  display: none;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
}


.checkout-btn {
  background: none;
  border: 2px solid #005197;
  color: #005197;
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  width: fit-content;
  align-self: flex-end;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.3s all ease;
}

.checkout-btn a {
  order: 1;
}

.checkout-btn i {
  font-size: 0.85rem;
  padding: 4px;
  border-radius: 50%;
  border: 2px solid #005197;
  order: 2;
  color: #005197;
  transition: all 0.3s ease;
}

.checkout-btn:hover {
  transform: translateX(4px);
}

.checkout-btn:hover i {
  background: #005197;
  color: white;
}

.checkout-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #0051973e, transparent);
  transition: left 0.6s ease;
}

.checkout-btn:hover::before {
  left: 100%;
}

.checkout-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -10%;
  height: 100%;
  width: 4px;
  border-radius: 20px 0 0 20px;
  background: #005197;
  transition: 0.3s all ease;
  opacity: 1;
}

.checkout-btn:hover::after {
  left: 0;
}


.security-badges {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed #a5b4fc;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1e3a8a;
  font-size: 0.9rem;
  font-weight: 600;
}

.security-item i {
  color: #0ea5e9;
  font-size: 1rem;
}

/* ===========================
   CART ACTIONS
=========================== */

.cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 2px solid #f1f5f9;
}

/* ===========================
   BUTTONS
=========================== */


.btn-outline {
  background: white;
  color: #005197;
  border: 2px solid #005197;
  box-shadow: 0 4px 15px rgba(0, 81, 151, 0.1);
  font-weight: 600;
  transition: 0.3s all ease;
}

.btn-outline:hover {
  background: #005197;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 81, 151, 0.25);
}

.btn-secondary {
  background: #64748b;
  color: white;
}

.btn-secondary:hover {
  background: #475569;
  transform: translateY(-1px);
}

/* ===========================
   RESPONSIVE DESIGN
=========================== */

@media (max-width: 1024px) {
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .order-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .cart-main {
    padding: 20px 0 40px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .cart-items-section,
  .order-summary {
    padding: 20px;
  }

  .cart-item {
    gap: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

  }

  .item-controls {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
  }

  .cart-actions {
    gap: 15px;
  }

  .cart-actions .btn {
    width: 100%;
    padding: 15px 5px;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {

  .cart-items-section .section-title {
    font-size: 1.2rem !important;
    gap: 8px;
  }

  .cart-items-section .section-title i {
    font-size: 1.2rem !important;
  }


  .coupon-input {
    flex-direction: column;
  }

  .coupon-input input {
    width: 100%;
  }

  .coupon-input .btn {
    width: fit-content;
    padding: 10px 15px;
  }

  .security-badges {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .cart-notification-content {
    width: 90% !important;
    right: 5% !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    border-radius: 4px !important;
  }

  .cart-notification-content i {
    font-size: 14px !important;
    margin-right: 6px !important;
  }

  .cart-actions {
    gap: 5px;
  }

  .cart-actions .btn {
    width: 100%;
    padding: 15px 2px;
    display: flex;
    justify-content: center;
    white-space: wrap;
    font-size: 11px;
    gap: 5px;
  }

  .cart-actions .btn i {
    font-size: 0.9rem;
  }

}

/* Extra küçük mobil cihazlar için */
@media (max-width: 360px) {
  .cart-notification-content {
    width: 95% !important;
    right: 2.5% !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    border-radius: 3px !important;
    top: 10px !important;
  }

  .cart-notification-content i {
    font-size: 12px !important;
    margin-right: 4px !important;
  }
}

/* Mobile notification stilleri */
.mobile-notification {
  right: 10px !important;
  top: 15px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  max-width: calc(100vw - 20px) !important;
  border-radius: 4px !important;
}

.mobile-notification .cart-notification-content {
  gap: 6px;
}

.mobile-notification .cart-notification-content i {
  font-size: 14px;
}

@media (max-width: 360px) {
  .mobile-notification {
    right: 5px !important;
    top: 10px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    max-width: calc(100vw - 10px) !important;
    border-radius: 3px !important;
  }

  .mobile-notification .cart-notification-content i {
    font-size: 12px !important;
  }
}